Commit 4edae60c authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

real: Abort demuxing in case of error.

parent c57a8be4
......@@ -311,12 +311,16 @@ static int Demux( demux_t *p_demux )
p_sys->i_data_packets++;
if( i_size == 0 ) return 0;
if( i_size == 0 )
{
msg_Err( p_demux, "Got a NUKK size to read. (Invalid format?)" );
return 1;
}
if( i_size > sizeof(p_sys->buffer) )
{
msg_Err( p_demux, "Got a size to read bigger than our buffer. Ignoring current frame." );
return 0;
msg_Err( p_demux, "Got a size to read bigger than our buffer. (Invalid format?)" );
return 1;
}
stream_Read( p_demux->s, p_sys->buffer, i_size );
......
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