summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-11-11 05:11:22 +0000
committerjstebbins <[email protected]>2010-11-11 05:11:22 +0000
commit3fdad03f776473d8c59c5779638b10d2af7fba80 (patch)
tree149a55061e99e36e9c6253608026a12722846613 /libhb/common.c
parent6f005579f31974f44f7a9743055b5d6340794c3e (diff)
tweak audio bitrate limits
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3672 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 776d0a7ca..f1926e9dd 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;