提交 eb800f12 编写于 作者: W wm4 提交者: Anton Khirnov

libavcodec: set AVFrame colorspace fields on decoding

Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册