vcodec = ghb_settings_video_encoder_codec(ud->settings, "VideoEncoder");
vquality = ghb_dict_get_double(ud->settings, "VideoQualitySlider");
- if ((vcodec & HB_VCODEC_X264_MASK) && vquality < 1.0)
+ if (vcodec == HB_VCODEC_X264_8BIT && vquality < 1.0)
{
// Set Profile to auto for lossless x264
ghb_ui_update(ud, "VideoProfile", ghb_string_value("auto"));
step = min_step;
}
gdouble val = gtk_range_get_value(GTK_RANGE(widget));
- val = ((int)((val + step / 2) / step)) * step;
+ if (val < 0)
+ {
+ val = ((int)((val - step / 2) / step)) * step;
+ }
+ else
+ {
+ val = ((int)((val + step / 2) / step)) * step;
+ }
if (val < min)
{
val = min;
} break;
case HB_VCODEC_X264_8BIT:
- case HB_VCODEC_X264_10BIT:
{
if (val == 0.0)
{
vqname, val);
}
} // Falls through to default
+ case HB_VCODEC_X264_10BIT:
default:
{
return g_strdup_printf("%s: %.4g", vqname, val);