summaryrefslogtreecommitdiff
path: root/libavcodec/dca.c
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2017-07-10 17:11:32 +0300
committerJames Almer <jamrial@gmail.com>2017-07-18 21:04:55 -0300
commit9e37cc11012f23e39b63032b5daac03621340a4f (patch)
tree2ab7fa5e70963420f1536eeeb0915732e8d8895d /libavcodec/dca.c
parentf6b86b62f785a67a356c87f5ea483a1cbe338191 (diff)
avcodec/dca: move bits per sample array to dca.c
It will be used by the parser. This change 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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 58f340e6da..fb796191d6 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -45,6 +45,10 @@ const uint8_t ff_dca_freq_ranges[16] = {
0, 1, 2, 3, 4, 1, 2, 3, 4, 4, 0, 1, 2, 3, 4, 4
};
+const uint8_t ff_dca_bits_per_sample[8] = {
+ 16, 16, 20, 20, 0, 24, 24, 0
+};
+
int avpriv_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst,
int max_size)
{