* TODO what if StreamInfo not last?
*/
streamInfo.write(bitOutStream, false);
// flush bit input stream
BitInputStream bis = decoder.getBitInputStream();
int bytesLeft = bis.getInputBytesUnconsumed();
byte[] b = new byte[bytesLeft];
bis.readByteBlockAlignedNoCRC(b, bytesLeft);
byteOutStream.write(b);
ByteArrayInputStream byteInStream = new ByteArrayInputStream(byteOutStream.toByteArray());
//ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());