[FFmpeg-cvslog] avformat/avidec: disable parsing for RV40
Michael Niedermayer
git at videolan.org
Thu Sep 17 02:20:20 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Sep 16 23:54:48 2015 +0200| [d64f7d42130764f19771fdf3b7b220bcfde15db4] | committer: Michael Niedermayer
avformat/avidec: disable parsing for RV40
Fixes: broken_rv40.avi
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d64f7d42130764f19771fdf3b7b220bcfde15db4
---
libavformat/avidec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 1a4f1b5..2e2d03c 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -817,6 +817,8 @@ static int avi_read_header(AVFormatContext *s)
if (st->codec->codec_tag == MKTAG('V', 'S', 'S', 'H'))
st->need_parsing = AVSTREAM_PARSE_FULL;
+ if (st->codec->codec_id == AV_CODEC_ID_RV40)
+ st->need_parsing = AVSTREAM_PARSE_NONE;
if (st->codec->codec_tag == 0 && st->codec->height > 0 &&
st->codec->extradata_size < 1U << 30) {
More information about the ffmpeg-cvslog
mailing list