diff options
author | Rodeo <[email protected]> | 2012-02-21 23:56:12 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-02-21 23:56:12 +0000 |
commit | 8bd4efe5c7891fc428d56690dfd11aece7734d0e (patch) | |
tree | 396f9e2b342ff01b629d3623cf0da7b5f9658b43 /gtk/src/audiohandler.c | |
parent | 2599def15a4b622c9f0e6d354dd9c0ad90531d6c (diff) |
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
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 693b5bff7..52c5f8599 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -578,7 +578,7 @@ ghb_audio_list_refresh_selected(signal_user_data_t *ud) codec = ghb_settings_combo_option(asettings, "AudioEncoderActual"); double quality = ghb_settings_get_double(asettings, "AudioTrackQuality"); if (ghb_settings_get_boolean(asettings, "AudioTrackQualityEnable") && - quality >= 0) + quality != HB_INVALID_AUDIO_QUALITY) { int codec = ghb_settings_combo_int(asettings, "AudioEncoderActual"); s_quality = ghb_format_quality("Q/", codec, quality); @@ -647,7 +647,7 @@ ghb_audio_list_refresh(signal_user_data_t *ud) codec = ghb_settings_combo_option(asettings, "AudioEncoderActual"); double quality = ghb_settings_get_double(asettings, "AudioTrackQuality"); if (ghb_settings_get_boolean(asettings, "AudioTrackQualityEnable") && - quality >= 0) + quality != HB_INVALID_AUDIO_QUALITY) { int codec = ghb_settings_combo_int(asettings, "AudioEncoderActual"); s_quality = ghb_format_quality("Q/", codec, quality); @@ -1046,7 +1046,7 @@ ghb_add_audio_to_ui(GtkBuilder *builder, const GValue *settings) codec = ghb_settings_combo_option(settings, "AudioEncoderActual"); double quality = ghb_settings_get_double(settings, "AudioTrackQuality"); if (ghb_settings_get_boolean(settings, "AudioTrackQualityEnable") && - quality >= 0) + quality != HB_INVALID_AUDIO_QUALITY) { int codec = ghb_settings_combo_int(settings, "AudioEncoderActual"); s_quality = ghb_format_quality("Q/", codec, quality); |