summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-07-12 15:09:08 -0700
committerJohn Stebbins <[email protected]>2017-07-12 15:09:08 -0700
commit03fd75b764d068e54c3c9704157b58eb6bf8b46b (patch)
treec0654a26813c5b0af23baea5a190a67b8be4866e
parent7263ff2d6900fdfa21f0f4a948bc1b5f321617b3 (diff)
silence new compiler warnings on Fedora 26
-rw-r--r--libhb/encavcodecaudio.c4
-rw-r--r--libhb/h264_common.h2
-rw-r--r--libhb/h265_common.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c
index e13963292..480d1e684 100644
--- a/libhb/encavcodecaudio.c
+++ b/libhb/encavcodecaudio.c
@@ -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);
}
}
diff --git a/libhb/h264_common.h b/libhb/h264_common.h
index 464899432..f237ef7e7 100644
--- a/libhb/h264_common.h
+++ b/libhb/h264_common.h
@@ -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, };
diff --git a/libhb/h265_common.h b/libhb/h265_common.h
index 19cc7e895..aa4736497 100644
--- a/libhb/h265_common.h
+++ b/libhb/h265_common.h
@@ -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, };