diff options
author | jstebbins <[email protected]> | 2011-06-07 21:27:02 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-06-07 21:27:02 +0000 |
commit | d40287132815adc74a0d1444a1e7b76e89879f69 (patch) | |
tree | 00c95f36cbe47104a7ad40233c93bc588702251f /libhb/common.c | |
parent | e07dec1ec259a52a893642da14856e16085f3c36 (diff) |
libhb: add support for libav aac encoder (libhb only)
This generalizes the ac3 encoder to make it easy to add support
for any audio encoder that libav supports. Since ffaac is not quite
ready, the cli and gui does not expose ffaac yet.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4029 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c index 868cafbcb..cc4f5ec0c 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -222,6 +222,22 @@ void hb_get_audio_bitrate_limits(uint32_t codec, int samplerate, int mixdown, in } break; + case HB_ACODEC_FFAAC: + *low = 32 * channels; + if (samplerate > 24000) + { + *high = 160 * channels; + if (*high > 768) + *high = 768; + } + else + { + *high = 96 * channels; + if (*high > 480) + *high = 480; + } + break; + case HB_ACODEC_VORBIS: *high = channels * 80; if (samplerate > 24000) |