summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-03-04 01:19:36 +0000
committerRodeo <[email protected]>2013-03-04 01:19:36 +0000
commita8b46f01e4e981e7ddc790a351f4b835435517b0 (patch)
tree8ed2490834123f6b5d48b1d9a198e4f5fe097094
parentebb430297e59385a34b3391ab60565f43bb68ac3 (diff)
fdk_haac: samplerates < 16 kHz are not supported.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5296 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/common.c6
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;