projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c02adc
)
libavcodec: set AVFrame colorspace fields on decoding
author
wm4
<nfxjfg@googlemail.com>
Fri, 30 May 2014 20:14:22 +0000
(22:14 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 1 Jun 2014 06:23:05 +0000
(08:23 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
cb456d5
..
dff8419
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-580,6
+580,13
@@
int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame)
int size;
AVFrameSideData *frame_sd;
+#if FF_API_AVFRAME_COLORSPACE
+ frame->color_primaries = avctx->color_primaries;
+ frame->color_trc = avctx->color_trc;
+ frame->colorspace = avctx->colorspace;
+ frame->color_range = avctx->color_range;
+ frame->chroma_location = avctx->chroma_sample_location;
+#endif
frame->reordered_opaque = avctx->reordered_opaque;
if (!pkt) {