diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2018-10-08 15:49:56 +0200 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2018-10-18 21:38:44 +0200 |
commit | 1a45b12cdc414794795c11db378d0be6113a22d3 (patch) | |
tree | f57b198b14f081d9d84fc9bcd7dca5a6eacfa182 /libavcodec/proresenc_anatoliy.c | |
parent | d7731ea9d43cf8e7df19d54ab657adbda90d5fd3 (diff) | |
download | ffmpeg-streaming-1a45b12cdc414794795c11db378d0be6113a22d3.zip ffmpeg-streaming-1a45b12cdc414794795c11db378d0be6113a22d3.tar.gz |
avcodec/proresenc_aw : use AVframe primaries, transfert, colorspace for frame header instead of default (unknown, unknown, Rec601)
avoid color shift, on some decoding software
Diffstat (limited to 'libavcodec/proresenc_anatoliy.c')
-rw-r--r-- | libavcodec/proresenc_anatoliy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index dd6b1dc..91b9a17 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -501,9 +501,9 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt, bytestream_put_be16(&buf, avctx->height); *buf++ = 0x83; // {10}(422){00}{00}(frame){11} *buf++ = 0; - *buf++ = 2; - *buf++ = 2; - *buf++ = 6; + *buf++ = pict->color_primaries; + *buf++ = pict->color_trc; + *buf++ = pict->colorspace; *buf++ = 32; *buf++ = 0; *buf++ = 3; |