[FFmpeg-devel] [PATCH] avcodec/dpxenc: support colour metadata in DPX encoder, fixes ticket #6023

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Feb 3 16:50:47 EET 2017


2017-02-03 15:46 GMT+01:00 Vittorio Giovara <vittorio.giovara at gmail.com>:

> if (priv_trc_opt = "") {

Why is this useful?

>    if (avctx->color_trc == AVCOL_BT709)
>       buf[801] = DPX_BT709
>    else if (avctx->color_trc == AVCOL_BT601)
>       buf[801] = DPX_BT601

I would suggest a switch()

Carl Eugen


More information about the ffmpeg-devel mailing list