summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-10-08 21:08:22 +0000
committerjstebbins <[email protected]>2010-10-08 21:08:22 +0000
commit0c7b1899c95691ebf6ac020c09f6aa37ca9376af (patch)
treeeab5e2e8e8454b4f52df67b845dd57a4c7b1ee45 /libhb/common.c
parent510bf62ed599bcab9d96a3186283b1e6a5417921 (diff)
future proof faac bitrate limits
by making the high thresh dependent on # channels git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3582 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 42ed2e547..85a3803e2 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -121,12 +121,9 @@ void hb_get_audio_bitrate_limits(uint32_t codec, int samplerate, int mixdown, in
case HB_ACODEC_FAAC:
*low = 32 * channels;
- if (channels >= 6)
+ *high = 160 * channels;
+ if (*high > 768)
*high = 768;
- else if (channels >= 2)
- *high = 320;
- else
- *high = 160;
break;
case HB_ACODEC_VORBIS: