diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-10-18 03:29:41 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-10-18 03:30:03 +0200 |
commit | 39f6733f0593064ae5148dd6484f1d7c74d7cae5 (patch) | |
tree | 90fa8ec653878d932eaaee1ebf37cf99b2998e79 /libavformat/avidec.c | |
parent | fae714a9fbff876c4cacfe7d437c940d557b44ce (diff) | |
download | ffmpeg-39f6733f0593064ae5148dd6484f1d7c74d7cae5.tar.gz |
Do not try to parse empty strf tags.
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 9e75ee2cd2..05602d8bc1 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -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 { |