diff options
author | jstebbins <[email protected]> | 2011-08-12 22:00:51 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-08-12 22:00:51 +0000 |
commit | 5fe02b451576dbf5c914126aae1b982f6d07c4f8 (patch) | |
tree | 36e6233f5d63e0f43f9c9ef9bfdf16780e8b1af2 /libhb/encavcodec.c | |
parent | c7dc5e69f2244206a41dea18a2f4c502c25bafb4 (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/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index c613fa717..965752aa9 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -196,13 +196,15 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) } /* Here's where the strings are passed to avutil for parsing. */ - ret = av_set_string3( context, name, value, 1, NULL ); + ret = hb_av_set_string( context, codec, name, value ); /* Let avutil sanity check the options for us*/ if( ret == AVERROR_OPTION_NOT_FOUND ) hb_log( "avcodec options: Unknown option %s", name ); + if( ret == AVERROR(EINVAL) ) - hb_log( "avcodec options: Bad argument %s=%s", name, value ? value : "(null)" ); + hb_log( "avcodec options: Bad argument %s=%s", + name, value ? value : "(null)" ); } } free(opts_start); |