Module: libav Branch: master Commit: eb800f120d2d42590fde2302fe828c847e41e773
Author: wm4 <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Fri May 30 22:14:22 2014 +0200 libavcodec: set AVFrame colorspace fields on decoding Signed-off-by: Anton Khirnov <[email protected]> --- 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) { _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
