vc1_parser: fix parsing of the frame headers in interlaced streams
authorHendrik Leppkes <h.leppkes@gmail.com>
Thu, 13 Jun 2013 22:15:10 +0000 (00:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 14 Jun 2013 10:03:44 +0000 (12:03 +0200)
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>
libavcodec/vc1_parser.c

index 0438b30571de98f684aa695be9393c94929a2588..132132017314b0cc9bf063ea746937f5560c7d4d 100644 (file)
@@ -45,6 +45,7 @@ static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx,
 
     vpc->v.s.avctx = avctx;
     vpc->v.parse_only = 1;
+    vpc->v.first_pic_header_flag = 1;
     next = buf;
     s->repeat_pict = 0;