[FFmpeg-cvslog] vc1_parser: fix parsing of the frame headers in interlaced streams

Hendrik Leppkes git at videolan.org
Fri Jun 14 12:59:48 CEST 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Jun 14 00:15:10 2013 +0200| [59d3c24e28ba1f99be7c6e65fb90e25d20f70f14] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59d3c24e28ba1f99be7c6e65fb90e25d20f70f14
---

 libavcodec/vc1_parser.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c
index 0438b30..1321320 100644
--- a/libavcodec/vc1_parser.c
+++ b/libavcodec/vc1_parser.c
@@ -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;
 



More information about the ffmpeg-cvslog mailing list