ffmpeg | branch: master | Mark Thompson <s...@jkqxz.net> | Wed Oct 26 21:13:45 2016 +0100| [fea4dc05b41f5465bedc786b67966f204ec6150c] | committer: Mark Thompson
vc1: Return stream format information from parser > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fea4dc05b41f5465bedc786b67966f204ec6150c --- libavcodec/vc1_parser.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c index 38b62f7..7234db6 100644 --- a/libavcodec/vc1_parser.c +++ b/libavcodec/vc1_parser.c @@ -108,6 +108,14 @@ static void vc1_extract_header(AVCodecParserContext *s, AVCodecContext *avctx, break; } + s->format = vpc->v.chromaformat == 1 ? AV_PIX_FMT_YUV420P + : AV_PIX_FMT_NONE; + if (avctx->width && avctx->height) { + s->width = avctx->width; + s->height = avctx->height; + s->coded_width = FFALIGN(avctx->coded_width, 16); + s->coded_height = FFALIGN(avctx->coded_height, 16); + } } static int vc1_parse(AVCodecParserContext *s, _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog