]> granicus.if.org Git - handbrake/commitdiff
silence new compiler warnings on Fedora 26
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 12 Jul 2017 22:09:08 +0000 (15:09 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 12 Jul 2017 22:09:08 +0000 (15:09 -0700)
libhb/encavcodecaudio.c
libhb/h264_common.h
libhb/h265_common.h

index e13963292c58f62acaaf41000f2e8a1600b377ef..480d1e684a90f2c84d0b84eec4f7bbe23af21beb 100644 (file)
@@ -182,8 +182,8 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job)
         if (audio->config.out.codec == HB_ACODEC_FDK_AAC ||
             audio->config.out.codec == HB_ACODEC_FDK_HAAC)
         {
-            char vbr[2];
-            snprintf(vbr, 2, "%.1g", audio->config.out.quality);
+            char vbr[8];
+            snprintf(vbr, 8, "%.1g", audio->config.out.quality);
             av_dict_set(&av_opts, "vbr", vbr, 0);
         }
     }
index 4648994327bca7b5a96d93ed34c8fe18dbaac567..f237ef7e73e9d45d1d3e478c3c34e8da25af6705 100644 (file)
@@ -13,7 +13,7 @@
 static const char * const   hb_h264_profile_names_8bit[] = { "auto", "high", "main", "baseline", NULL, };
 static const char * const   hb_h264_profile_names_10bit[] = { "auto", "high10", NULL, };
 static const char * const     hb_h264_level_names[] = { "auto", "1.0", "1b", "1.1", "1.2", "1.3", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "4.0", "4.1", "4.2", "5.0", "5.1", "5.2",  NULL, };
-static const int    const    hb_h264_level_values[] = {     -1,    10,    9,    11,    12,    13,    20,    21,    22,    30,    31,    32,    40,    41,    42,    50,    51,    52,     0, };
+static const int             hb_h264_level_values[] = {     -1,    10,    9,    11,    12,    13,    20,    21,    22,    30,    31,    32,    40,    41,    42,    50,    51,    52,     0, };
 
 // stolen from libx264's x264.h
 static const char * const hb_h264_fullrange_names[] = { "off", "on", NULL, };
index 19cc7e895fdb3546cc83e068f5c63e733feeba93..aa47364976583c5fb2b6029dd8492ddd29b92c1d 100644 (file)
@@ -23,7 +23,7 @@ static const char * const   hb_h265_qsv_profile_names_10bit[]   = { "auto", "mai
 static const char * const   hb_h265_profile_names_12bit[]       = { "auto", "main12", "main12-intra", NULL, };
 static const char * const   hb_h265_profile_names_16bit[]       = { "auto", "main16", "main16-intra", NULL, };
 static const char * const     hb_h265_level_names[] = { "auto", "1.0", "2.0", "2.1", "3.0", "3.1", "4.0", "4.1", "5.0", "5.1", "5.2", "6.0", "6.1", "6.2",  NULL, };
-static const int    const    hb_h265_level_values[] = {     -1,    30,    60,    63,    90,    93,   120,   123,   150,   153,   156,   180,   183,   186,     0, };
+static const int             hb_h265_level_values[] = {     -1,    30,    60,    63,    90,    93,   120,   123,   150,   153,   156,   180,   183,   186,     0, };
 
 // stolen from libx265's x265.h
 static const char * const hb_h265_fullrange_names[] = { "limited", "full", NULL, };