[FFmpeg-cvslog] Do not try to parse empty strf tags.
Carl Eugen Hoyos
git at videolan.org
Tue Oct 18 03:30:13 CEST 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Oct 18 03:29:41 2011 +0200| [39f6733f0593064ae5148dd6484f1d7c74d7cae5] | committer: Carl Eugen Hoyos
Do not try to parse empty strf tags.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39f6733f0593064ae5148dd6484f1d7c74d7cae5
---
libavformat/avidec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 9e75ee2..05602d8 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 {
More information about the ffmpeg-cvslog
mailing list