diff options
author | Rodeo <[email protected]> | 2013-03-04 01:19:36 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-03-04 01:19:36 +0000 |
commit | a8b46f01e4e981e7ddc790a351f4b835435517b0 (patch) | |
tree | 8ed2490834123f6b5d48b1d9a198e4f5fe097094 /libhb/common.c | |
parent | ebb430297e59385a34b3391ab60565f43bb68ac3 (diff) |
fdk_haac: samplerates < 16 kHz are not supported.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5296 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c index dbfc6caf1..e95d684b2 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1003,6 +1003,12 @@ int hb_get_best_samplerate(uint32_t codec, int samplerate, int *sr_shift) best_samplerate = 32000; samplerate_shift = 0; } + else if (samplerate < 16000 && codec == HB_ACODEC_FDK_HAAC) + { + // fdk_haac can't do samplerates < 16 kHz + best_samplerate = 16000; + samplerate_shift = 1; + } else { best_samplerate = samplerate; |