OSDN Git Service

future proof faac bitrate limits
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 8 Oct 2010 21:08:22 +0000 (21:08 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 8 Oct 2010 21:08:22 +0000 (21:08 +0000)
by making the high thresh dependent on # channels

git-svn-id: svn://localhost/HandBrake/trunk@3582 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/common.c

index 42ed2e5..85a3803 100644 (file)
@@ -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: