projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0940b74
)
vc1: Return stream format information from parser
author
Mark Thompson
<sw@jkqxz.net>
Wed, 26 Oct 2016 20:13:45 +0000
(21:13 +0100)
committer
Mark Thompson
<sw@jkqxz.net>
Mon, 14 Nov 2016 19:38:19 +0000
(19:38 +0000)
libavcodec/vc1_parser.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/vc1_parser.c
b/libavcodec/vc1_parser.c
index
38b62f7
..
7234db6
100644
(file)
--- 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,