Commit 2c784745 authored by Rafaël Carré's avatar Rafaël Carré

h264: fix maximum size calculation

(cherry picked from commit cf34ca7b)
parent f928f7db
......@@ -444,7 +444,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