From c33fc0a5409d19eb04ac7135e3e2b4c77bee654f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Mon, 15 Jan 2007 22:56:46 +0000 Subject: [PATCH] fixing segfault with http://sam.zoy.org/zzuf/lol-ffplay.avi Originally committed as revision 7537 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avidec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 276689dd5c1..6d5a0c98e14 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -397,7 +397,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) break; case MKTAG('s', 't', 'r', 'f'): /* stream header */ - if (stream_index >= s->nb_streams || avi->dv_demux) { + if (stream_index >= (unsigned)s->nb_streams || avi->dv_demux) { url_fskip(pb, size); } else { st = s->streams[stream_index]; -- GitLab