diff options
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; |