X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Favidec.c;h=1f9fa149e1608e0166670c3bd1a185c5e41cb4d7;hb=f1edf881ef83de9f8af12fae32cb28f895ae988a;hp=17eb245332ca77c6e6dad03ef9b7c66d3ae60842;hpb=d701f5996daf64f5abac8e402b7b62d5c48c63e1;p=ffmpeg 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) {