Commit ccb8128c authored by Laurent Aimar's avatar Laurent Aimar

Fixed infinite loop in truncated file.

parent 1a2a411c
......@@ -654,7 +654,11 @@ loop_error_recovery:
msg_Err( p_demux, "unsupported packet header, fatal error" );
return -1;
}
stream_Read( p_demux->s, NULL, i_data_packet_min );
if( stream_Read( p_demux->s, NULL, i_data_packet_min ) != i_data_packet_min )
{
msg_Warn( p_demux, "cannot skip data, EOF ?" );
return 0;
}
return 1;
}
......
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