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);
}
}
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, };
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, };