summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-08-12 22:00:51 +0000
committerjstebbins <[email protected]>2011-08-12 22:00:51 +0000
commit5fe02b451576dbf5c914126aae1b982f6d07c4f8 (patch)
tree36e6233f5d63e0f43f9c9ef9bfdf16780e8b1af2 /libhb/work.c
parentc7dc5e69f2244206a41dea18a2f4c502c25bafb4 (diff)
libhb: fix setting Libav codec private options
and logging of Libav advanced options. Thanks to Rodeo for spotting git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4170 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 9ab11fec9..035d9c664 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -291,8 +291,6 @@ void hb_display_job_info( hb_job_t * job )
case HB_VCODEC_X264:
hb_log( " + encoder: x264" );
- if( job->advanced_opts != NULL && *job->advanced_opts != '\0' )
- hb_log( " + options: %s", job->advanced_opts);
break;
case HB_VCODEC_THEORA:
@@ -300,6 +298,13 @@ void hb_display_job_info( hb_job_t * job )
break;
}
+ if ( job->advanced_opts && *job->advanced_opts &&
+ ( ( job->vcodec & HB_VCODEC_FFMPEG_MASK ) ||
+ job->vcodec == HB_VCODEC_X264 ) )
+ {
+ hb_log( " + options: %s", job->advanced_opts);
+ }
+
if( job->vquality >= 0 )
{
hb_log( " + quality: %.2f %s", job->vquality, job->vcodec == HB_VCODEC_X264 ? "(RF)" : "(QP)" );