From cbaf9213ea3ce0309e0fa9d80cd6d39bd10eac8f Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Mon, 14 Jan 2019 13:38:10 -0800 Subject: [PATCH] encavcodec: respect inline_parameter_sets setting --- libhb/encavcodec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 476fd0d40..f0c64baa4 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -437,7 +437,10 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) context->color_trc = job->color_transfer; context->colorspace = job->color_matrix; - context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; + if (!job->inline_parameter_sets) + { + context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; + } if( job->grayscale ) { context->flags |= AV_CODEC_FLAG_GRAY; -- 2.40.0