Commit 7c593a9a authored by Laurent Aimar's avatar Laurent Aimar

Added 2 asserts.

parent 7d26a5b2
......@@ -283,6 +283,9 @@ int EStoPES ( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
int i_pes_count = 1;
assert( i_max_pes_size >= 0 );
assert( i_header_size >= 0 );
/* NB, Only video ES may have unbounded length */
if( !i_max_pes_size ||
( p_fmt->i_cat != VIDEO_ES && i_max_pes_size > PES_PAYLOAD_SIZE_MAX ) )
......
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