[SCM] libav/experimental: libavcodec: set AVFrame colorspace fields on decoding
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:03:21 UTC 2014
The following commit has been merged in the experimental branch:
commit eb800f120d2d42590fde2302fe828c847e41e773
Author: wm4 <nfxjfg at googlemail.com>
Date: Fri May 30 22:14:22 2014 +0200
libavcodec: set AVFrame colorspace fields on decoding
Signed-off-by: Anton Khirnov <anton at khirnov.net>
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index cb456d5..dff8419 100644
--- 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) {
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list