]> granicus.if.org Git - handbrake/commitdiff
encx264: log the unparsed advanced options string for informational purposes.
authorRodeo <tdskywalker@gmail.com>
Sat, 19 Oct 2013 12:14:31 +0000 (12:14 +0000)
committerRodeo <tdskywalker@gmail.com>
Sat, 19 Oct 2013 12:14:31 +0000 (12:14 +0000)
Patch by BradleyS. Thanks!

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5839 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx264.c

index 6f91c8b2bd8875153420c52cc5b3364c8d29791f..42457ae202e7caa17b9e415d9714dd5be74ddd65 100644 (file)
@@ -323,6 +323,16 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
         job->areBframes = 1;
     }
     
+    /* Log the unparsed x264 options string. */
+    char *x264_opts_unparsed = hb_x264_param_unparse( job->x264_preset,
+                                                      job->x264_tune,
+                                                      job->advanced_opts,
+                                                      job->h264_profile,
+                                                      job->h264_level,
+                                                      job->width, job->height );
+    hb_log( "encx264: unparsed options: %s", x264_opts_unparsed );
+    free( x264_opts_unparsed );
+
     hb_deep_log( 2, "encx264: opening libx264 (pass %d)", job->pass );
     pv->x264 = x264_encoder_open( &param );
     if ( pv->x264 == NULL )