Browse Source

Use the h264 parser when decoding VSSH in avi.

Fixes ticket #3261 visually.

Analyzed-by: Michael Doilnitsyn
tags/n2.2-rc1
Carl Eugen Hoyos 11 years ago
parent
commit
94cf4f8bac
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/avidec.c

+ 2
- 0
libavformat/avidec.c View File

@@ -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) {


Loading…
Cancel
Save