summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-09-09 01:17:10 +0000
committerRodeo <[email protected]>2012-09-09 01:17:10 +0000
commit9a4cc6f98065d5887faa3e202dc42b71a41a4c4e (patch)
treea2035c8d5082207161e417f1e57aab8c07d97bb7 /libhb/encx264.c
parentac59f6afae162450e7d3a4af8106dba75bc5b88f (diff)
encx264: make hb_x264_encopt_synonyms two-dimensional instead of faking it.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4946 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index 889669381..2d29168ab 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -877,8 +877,8 @@ const char * const * hb_h264_levels()
const char * hb_x264_encopt_name(const char *name)
{
int i;
- for (i = 0; hb_x264_encopt_synonyms[i] && hb_x264_encopt_synonyms[i+1]; i += 2)
- if (!strcmp(name, hb_x264_encopt_synonyms[i+1]))
- return hb_x264_encopt_synonyms[i];
+ for (i = 0; hb_x264_encopt_synonyms[i][0] != NULL; i++)
+ if (!strcmp(name, hb_x264_encopt_synonyms[i][1]))
+ return hb_x264_encopt_synonyms[i][0];
return name;
}