summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-10-15 16:15:19 +0000
committerjstebbins <[email protected]>2011-10-15 16:15:19 +0000
commite3cbf2a342b7093d0b0b1720d3b3c933c3a4fa69 (patch)
tree359b3072d8b85bb1ea4fd66b4464b13a81cd6c40
parente0e515e4eefccce80e8289324a10adce1684ef43 (diff)
LinGui: fix lame bitrate maxing out at 160
Must set the samplerate before trying to validate maximum bitrate. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4290 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/hb-backend.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index ea817b7ff..03fb954a5 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -4915,6 +4915,11 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex)
// Make sure the mixdown is valid and pick a new one if not.
audio.out.mixdown = ghb_get_best_mix(aconfig, audio.out.codec,
audio.out.mixdown);
+ gint srate = ghb_settings_combo_int(asettings, "AudioSamplerate");
+ if (srate == 0) // 0 is same as source
+ audio.out.samplerate = aconfig->in.samplerate;
+ else
+ audio.out.samplerate = srate;
double quality = ghb_settings_get_double(asettings, "AudioTrackQuality");
if (ghb_settings_get_boolean(asettings, "AudioTrackQualityEnable") &&
quality >= 0)
@@ -4932,11 +4937,6 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex)
audio.out.codec, audio.out.bitrate,
audio.out.samplerate, audio.out.mixdown);
}
- gint srate = ghb_settings_combo_int(asettings, "AudioSamplerate");
- if (srate == 0) // 0 is same as source
- audio.out.samplerate = aconfig->in.samplerate;
- else
- audio.out.samplerate = srate;
}
// Add it to the jobs audio list