Commit eb800f12 authored by wm4's avatar wm4 Committed by Anton Khirnov

libavcodec: set AVFrame colorspace fields on decoding

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 8c02adc6
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment