[FFmpeg-cvslog] libavcodec: set AVFrame colorspace fields on decoding
wm4
git at videolan.org
Sun Jun 1 13:44:16 CEST 2014
ffmpeg | branch: master | wm4 <nfxjfg at googlemail.com> | Fri May 30 22:14:22 2014 +0200| [eb800f120d2d42590fde2302fe828c847e41e773] | committer: Anton Khirnov
libavcodec: set AVFrame colorspace fields on decoding
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb800f120d2d42590fde2302fe828c847e41e773
---
libavcodec/utils.c | 7 +++++++
1 file changed, 7 insertions(+)
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) {
More information about the ffmpeg-cvslog
mailing list