Do not try to parse empty strf tags.

This commit is contained in:
Carl Eugen Hoyos 2011-10-18 03:29:41 +02:00
parent fae714a9fb
commit 39f6733f05
1 changed files with 2 additions and 0 deletions

View 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 {