Skip to content
Snippets Groups Projects
Commit a2f4b96f authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

packetizer_helper: fix potential junk on drain

computation is wrong and results in no GetBytes
parent 245d76e6
No related branches found
No related tags found
No related merge requests found
......@@ -166,9 +166,9 @@ static block_t *packetizer_PacketizeBlock( packetizer_t *p_pack, block_t **pp_bl
/* When flusing and we don't find a startcode, suppose that
* the data extend up to the end */
block_ChainProperties( p_pack->bytestream.p_chain,
NULL, &p_pack->i_offset, NULL );
p_pack->i_offset -= p_pack->bytestream.i_block_offset;
p_pack->i_offset = block_BytestreamRemaining(&p_pack->bytestream);
if( p_pack->i_offset == 0 )
return NULL;
if( p_pack->i_offset <= (size_t)p_pack->i_startcode &&
(p_pack->bytestream.p_block->i_flags & BLOCK_FLAG_AU_END) == 0 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment