Skip to content
Snippets Groups Projects
Commit a0e6405a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

mjpeg: handle I/O errors

parent 46eb8b99
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,8 @@ static int Open( vlc_object_t * p_this )
if( b_matched )
{
p_demux->pf_demux = MimeDemux;
vlc_stream_Read( p_demux->s, NULL, i_size );
if( vlc_stream_Read( p_demux->s, NULL, i_size ) < i_size )
goto error;
}
else if( i_size == 0 )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment