Browse Source

vc1_parser: fix parsing of the frame headers in interlaced streams

first_pic_header_flag needs to be set to allow the parsing code to change
some stream parameters, and not error out.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Hendrik Leppkes Michael Niedermayer 12 years ago
parent
commit
59d3c24e28
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vc1_parser.c

+ 1
- 0
libavcodec/vc1_parser.c View File

@@ -45,6 +45,7 @@ static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx,


vpc->v.s.avctx = avctx; vpc->v.s.avctx = avctx;
vpc->v.parse_only = 1; vpc->v.parse_only = 1;
vpc->v.first_pic_header_flag = 1;
next = buf; next = buf;
s->repeat_pict = 0; s->repeat_pict = 0;




Loading…
Cancel
Save