]> granicus.if.org Git - handbrake/commitdiff
encavcodec: respect inline_parameter_sets setting
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 14 Jan 2019 21:38:10 +0000 (13:38 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 14 Jan 2019 21:38:47 +0000 (13:38 -0800)
libhb/encavcodec.c

index 476fd0d40c5814fb0aced6cfc214c79257f8e1d2..f0c64baa4a11b361dac5c6d48316de2861688da6 100644 (file)
@@ -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;