[vlc-devel] [PATCH 5/5] x264: add translated and capitalised labels for --sout-x26X-bpyramid option

Lyndon Brown jnqnfe at gmail.com
Mon Sep 28 02:02:06 CEST 2020


From: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun, 13 Sep 2020 19:02:20 +0100
Subject: x264: add translated and capitalised labels for --sout-x26X-bpyramid option


diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 6dea2871e4..3d5340bbbe 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -421,6 +421,8 @@ static const char *const enc_me_list_text[] =
 
 static const char *const bpyramid_list[] =
   { "none", "strict", "normal" };
+static const char *const bpyramid_list_text[] =
+  { N_("None"), N_("Strict"), N_("Normal") };
 
 static const char *const enc_analyse_list[] =
   { "none", "fast", "normal", "slow", "all" };
@@ -487,7 +489,7 @@ vlc_module_begin ()
 
     add_string( SOUT_CFG_PREFIX "bpyramid", "normal", BPYRAMID_TEXT,
               BPYRAMID_LONGTEXT, true )
-        change_string_list( bpyramid_list, bpyramid_list )
+        change_string_list( bpyramid_list, bpyramid_list_text )
 
     add_bool( SOUT_CFG_PREFIX "cabac", true, CABAC_TEXT, CABAC_LONGTEXT,
               true )



More information about the vlc-devel mailing list