diff options
author | jstebbins <[email protected]> | 2010-04-14 16:47:02 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-04-14 16:47:02 +0000 |
commit | 18a10c15de751301f5a67ede5f917a761bf060a5 (patch) | |
tree | 92a4099768f87cf66f45b4055c81339d3daf33b6 /gtk/src/hb-backend.c | |
parent | abeea8ddf0b918eeb48b438d72f8db7a4c166997 (diff) |
patch to allow higher bitrates with faac
2 channel allows up to 320kbps, 6 channel allows up to 768kbps
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3222 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 78fab8cbd..abe02b8e7 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -948,7 +948,7 @@ ghb_find_closest_audio_bitrate(gint codec, gint rate) gint result; if (codec == HB_ACODEC_FAAC) - high = 160; + high = 320; result = high; for (ii = 0; ii < hb_audio_bitrates_count; ii++) @@ -1421,7 +1421,12 @@ ghb_get_best_audio_bitrate(gint acodec, gint br, gint channels) { if (acodec & HB_ACODEC_FAAC) { - int maxbr = channels * 80; + int maxbr; + + if (channels == 2) + maxbr = 320; + else + maxbr = 768; if (br > maxbr) br = maxbr; } @@ -2091,7 +2096,7 @@ ghb_find_audio_track( gint count = 0; gint track = -1; gint max_chan = 0; - gboolean *used; + gboolean *used = NULL; gboolean *passthru_used; gint try_acodec; gint passthru_acodec; |