aboutsummaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer2015-09-16 23:54:48 +0200
committerMichael Niedermayer2015-09-17 02:08:15 +0200
commitd64f7d42130764f19771fdf3b7b220bcfde15db4 (patch)
tree3b5b96f657197045e2caa2f6184d16caa76b72b8 /libavformat
parentfa5358f07d0cda461ee3c2d63e438a69ef00ca2f (diff)
avformat/avidec: disable parsing for RV40
Fixes: broken_rv40.avi Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avidec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 1a4f1b55ec..2e2d03c764 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) {