diff options
author | Damiano Galassi <[email protected]> | 2018-08-24 10:47:02 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-08-28 08:43:22 +0200 |
commit | 5c9ddef6b4b174fe452e8099b6c0ffb3c35c4036 (patch) | |
tree | 489ec68da720d3f366231142dc6900b16994ef7e /libhb/encavcodec.c | |
parent | d3a3ac2bbad637fc462e5ce37bc72537f0441ea5 (diff) |
Refactor the color tag code, and pass it to the FFmpeg encoders.
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index cb7693082..5cdc5df38 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -395,6 +395,11 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) hb_log( "encavcodec: encoding with stored aspect %d/%d", job->par.num, job->par.den ); + // set colorimetry + context->color_primaries = job->color_prim; + context->color_trc = job->color_transfer; + context->colorspace = job->color_matrix; + if( job->mux & HB_MUX_MASK_MP4 ) { context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; |