summaryrefslogtreecommitdiffstats
path: root/libhb/hb_dict.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-03-29 13:31:33 +0000
committerRodeo <[email protected]>2012-03-29 13:31:33 +0000
commita0fd4604194e63f5219b1da61afcd19d4bdcfc9f (patch)
treed7de3205ae96abb67f906525abcb8676bec750ba /libhb/hb_dict.c
parent5cfc8521de5547646afd47b46c8565dac351c50d (diff)
encx264: add functionality to retrieve the "preferred" option name for options that have multiple names.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4554 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb_dict.c')
-rw-r--r--libhb/hb_dict.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/hb_dict.c b/libhb/hb_dict.c
index 11206920c..1592f7e50 100644
--- a/libhb/hb_dict.c
+++ b/libhb/hb_dict.c
@@ -132,7 +132,7 @@ hb_dict_entry_t * hb_dict_next( hb_dict_t * dict, hb_dict_entry_t * previous )
return NULL;
}
-hb_dict_t * hb_encopts_to_dict( const char * encopts )
+hb_dict_t * hb_encopts_to_dict( const char * encopts, int encoder )
{
hb_dict_t * dict = NULL;
if( encopts && *encopts )
@@ -159,6 +159,9 @@ hb_dict_t * hb_encopts_to_dict( const char * encopts )
*value = 0;
value++;
}
+ // x264 has multiple names for some options
+ if( encoder == HB_VCODEC_X264 )
+ name = hb_x264_encopt_name( name );
hb_dict_set( &dict, name, value );
}
}