summaryrefslogtreecommitdiff
path: root/libavcodec/wma_freqs.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-09-03 03:27:27 -0700
committerDiego Biurrun <diego@biurrun.de>2014-09-04 05:19:46 -0700
commitf20518568a77a6138fc74021ce56013ab72907ba (patch)
tree35a82502706ec2d3f63cab2d087094f7f9c280d0 /libavcodec/wma_freqs.c
parent803f8992f11d1eb301672cd13c685a7b1d04c467 (diff)
build: Split WMA frequencies into a separate object file
These are the only WMA bits shared with binkaudio. Splitting them off reduces the binnkaudio dependency on general WMA code.
Diffstat (limited to 'libavcodec/wma_freqs.c')
-rw-r--r--libavcodec/wma_freqs.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/libavcodec/wma_freqs.c b/libavcodec/wma_freqs.c
new file mode 100644
index 0000000000..82cef3bfc3
--- /dev/null
+++ b/libavcodec/wma_freqs.c
@@ -0,0 +1,28 @@
+/*
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <stdint.h>
+
+#include "wma_freqs.h"
+
+const uint16_t ff_wma_critical_freqs[25] = {
+ 100, 200, 300, 400, 510, 630, 770, 920,
+ 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150,
+ 3700, 4400, 5300, 6400, 7700, 9500, 12000, 15500,
+ 24500,
+};