Do not try to parse empty strf tags.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 18 Oct 2011 01:29:41 +0000 (03:29 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 18 Oct 2011 01:30:03 +0000 (03:30 +0200)
libavformat/avidec.c

index 9e75ee2..05602d8 100644 (file)
@@ -570,6 +570,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
             break;
         case MKTAG('s', 't', 'r', 'f'):
             /* stream header */
+            if (!size)
+                break;
             if (stream_index >= (unsigned)s->nb_streams || avi->dv_demux) {
                 avio_skip(pb, size);
             } else {