From: jstebbins Date: Thu, 11 Nov 2010 05:11:22 +0000 (+0000) Subject: tweak audio bitrate limits X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=633a9ad5fb52e756f09cfe0a8be1b7b6238ca09e;p=handbrake-jp%2Fhandbrake-jp-git.git tweak audio bitrate limits git-svn-id: svn://localhost/HandBrake/trunk@3672 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/common.c b/libhb/common.c index 776d0a7c..f1926e9d 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -188,13 +188,15 @@ void hb_get_audio_bitrate_limits(uint32_t codec, int samplerate, int mixdown, in if (samplerate > 24000) { *high = 160 * channels; + if (*high > 768) + *high = 768; } else { - *high = 128 * channels; + *high = 96 * channels; + if (*high > 480) + *high = 480; } - if (*high > 768) - *high = 768; break; case HB_ACODEC_VORBIS: @@ -226,6 +228,14 @@ void hb_get_audio_bitrate_limits(uint32_t codec, int samplerate, int mixdown, in } break; + case HB_ACODEC_LAME: + *low = hb_audio_bitrates[0].rate; + if (samplerate > 24000) + *high = 320; + else + *high = 160; + break; + default: *low = hb_audio_bitrates[0].rate; *high = hb_audio_bitrates[hb_audio_bitrates_count-1].rate;