fixing segfault with http://sam.zoy.org/zzuf/lol-ffplay.avi
Originally committed as revision 7537 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -397,7 +397,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||||||
break;
|
break;
|
||||||
case MKTAG('s', 't', 'r', 'f'):
|
case MKTAG('s', 't', 'r', 'f'):
|
||||||
/* stream header */
|
/* 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);
|
url_fskip(pb, size);
|
||||||
} else {
|
} else {
|
||||||
st = s->streams[stream_index];
|
st = s->streams[stream_index];
|
||||||
|
Reference in New Issue
Block a user