Commit 18a597c4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

mjpeg: do not assume that stream_Read() succeeds

(cherry picked from commit f03f44d76a1949f5cbc05989fa1ab257818d245c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 13dd6a6c
......@@ -462,7 +462,8 @@ static int MimeDemux( demux_t *p_demux )
if( i_size > 0 )
{
stream_Read( p_demux->s, NULL, i_size );
if( stream_Read( p_demux->s, NULL, i_size ) != i_size )
return 0;
}
else if( i_size < 0 )
{
......
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