Commit cf34ca7b authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Paul Saman
Browse files

h264: fix maximum size calculation

parent 96fca586
......@@ -448,7 +448,7 @@ static block_t *PacketizeAVC1( decoder_t *p_dec, block_t **pp_block )
}
if( i_size <= 0 ||
i_size >= ( p - p_block->p_buffer + p_block->i_buffer ) )
i_size > ( p_block->p_buffer + p_block->i_buffer - p ) )
{
msg_Err( p_dec, "Broken frame : size %d is too big", i_size );
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment