From 94cf4f8bac12c58e30ce3b5d72cf5898baafe9a8 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 7 Jan 2014 22:49:05 +0100 Subject: [PATCH] Use the h264 parser when decoding VSSH in avi. Fixes ticket #3261 visually. Analyzed-by: Michael Doilnitsyn --- libavformat/avidec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 17eb245332c..1f9fa149e16 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -688,6 +688,8 @@ static int avi_read_header(AVFormatContext *s) /* This is needed to get the pict type which is necessary * for generating correct pts. */ st->need_parsing = AVSTREAM_PARSE_HEADERS; + if (st->codec->codec_tag == MKTAG('V', 'S', 'S', 'H')) + st->need_parsing = AVSTREAM_PARSE_FULL; if (st->codec->codec_tag == 0 && st->codec->height > 0 && st->codec->extradata_size < 1U << 30) { -- 2.39.2