aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-01-07 22:49:05 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-01-07 22:49:05 +0100
commit94cf4f8bac12c58e30ce3b5d72cf5898baafe9a8 (patch)
tree667db4c8ad8a7257b1fd2d5058c5132432011011
parent53df11eb73bdd3fd6c345de6a18958c57406589e (diff)
downloadffmpeg-94cf4f8bac12c58e30ce3b5d72cf5898baafe9a8.tar.gz
Use the h264 parser when decoding VSSH in avi.
Fixes ticket #3261 visually. Analyzed-by: Michael Doilnitsyn
-rw-r--r--libavformat/avidec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 17eb245332..1f9fa149e1 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) {