From 8bd4efe5c7891fc428d56690dfd11aece7734d0e Mon Sep 17 00:00:00 2001 From: Rodeo Date: Tue, 21 Feb 2012 23:56:12 +0000 Subject: Add HB_INVALID_AUDIO_QUALITY define. -1 is valid for Vorbis VBR and thus doesn't work for this purpose. Fixes Vorbis VBR with --aq < 0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4461 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/src/hb-backend.c') diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 695bb5465..837da3db2 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -4986,14 +4986,14 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex) audio.out.samplerate = srate; double quality = ghb_settings_get_double(asettings, "AudioTrackQuality"); if (ghb_settings_get_boolean(asettings, "AudioTrackQualityEnable") && - quality != -1) + quality != HB_INVALID_AUDIO_QUALITY) { audio.out.quality = quality; audio.out.bitrate = -1; } else { - audio.out.quality = -1; + audio.out.quality = HB_INVALID_AUDIO_QUALITY; audio.out.bitrate = ghb_settings_combo_int(asettings, "AudioBitrate"); -- cgit v1.2.3