You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
libavcodec: set AVFrame colorspace fields on decoding
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
@@ -580,6 +580,13 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame)
|
|||||||
int size;
|
int size;
|
||||||
AVFrameSideData *frame_sd;
|
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;
|
frame->reordered_opaque = avctx->reordered_opaque;
|
||||||
if (!pkt) {
|
if (!pkt) {
|
||||||
|
Reference in New Issue
Block a user