summaryrefslogtreecommitdiff
path: root/libavcodec/dca.c
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2016-05-26 14:29:35 +0300
committerJames Almer <jamrial@gmail.com>2016-05-26 13:32:48 -0300
commita0f76b825c8105acb4428ea60146687e90cfdc83 (patch)
treec2c07e452878fe384152644d6f0dcf157c8eb6fe /libavcodec/dca.c
parentd93495c95411b95cfc5c050dbabfcdff1c10890a (diff)
downloadffmpeg-a0f76b825c8105acb4428ea60146687e90cfdc83.tar.gz
avcodec/dca: move EXSS sampling frequency arrays to dca.c
Avoids unwanted parser dependency on dcadata. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r--libavcodec/dca.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 714509b267..f11c73c13a 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -36,6 +36,15 @@ const uint32_t avpriv_dca_sample_rates[16] = {
12000, 24000, 48000, 96000, 192000
};
+const uint32_t ff_dca_sampling_freqs[16] = {
+ 8000, 16000, 32000, 64000, 128000, 22050, 44100, 88200,
+ 176400, 352800, 12000, 24000, 48000, 96000, 192000, 384000,
+};
+
+const uint8_t ff_dca_freq_ranges[16] = {
+ 0, 1, 2, 3, 4, 1, 2, 3, 4, 4, 0, 1, 2, 3, 4, 4
+};
+
int avpriv_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst,
int max_size)
{