diff options
author | jstebbins <[email protected]> | 2010-10-05 22:51:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-10-05 22:51:50 +0000 |
commit | 7622dc8c73084d98e22ca6a7c44fec91962c492d (patch) | |
tree | 2b0de2fda50880e5fda100e741f365200296e7d1 /gtk/src/hb-backend.c | |
parent | 5b37d5479392e6112d72b9156af2865db3d6f575 (diff) |
LinGui: fix a problem where I used the wrong aac bitrate cap
wasn't allowing higher bitrate for aac 6ch in some cases.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3574 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index f245cda06..ea99e0c57 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -1614,22 +1614,11 @@ gint ghb_find_closest_audio_bitrate(gint codec, gint rate) { gint ii; - gint low = 32; - gint high = 768; gint result; - if (codec == HB_ACODEC_FAAC) - high = 320; - else if (codec == HB_ACODEC_AC3) - high = 640; - - result = high; + result = hb_audio_bitrates[hb_audio_bitrates_count-1].rate; for (ii = 0; ii < hb_audio_bitrates_count; ii++) { - if (hb_audio_bitrates[ii].rate < low) - continue; - if (hb_audio_bitrates[ii].rate > high) - break; if (rate <= hb_audio_bitrates[ii].rate) { result = hb_audio_bitrates[ii].rate; |