aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmaprodata.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-09-29 10:38:34 +0000
committerMåns Rullgård <mans@mansr.com>2009-09-29 10:38:34 +0000
commit076a9dea1ee01e54abf4a18f4aa73fad02f200a7 (patch)
tree3287271b4874d8a22b53ccb6655506aa57f677d8 /libavcodec/wmaprodata.h
parentff00b94e9d4f66922abe1830da2954a024bf87e5 (diff)
downloadffmpeg-076a9dea1ee01e54abf4a18f4aa73fad02f200a7.tar.gz
WMA: store level_table as floats, use type punning for sign flip in decode
Originally committed as revision 20078 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmaprodata.h')
-rw-r--r--libavcodec/wmaprodata.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmaprodata.h b/libavcodec/wmaprodata.h
index a910c1914a..a1d186e0c2 100644
--- a/libavcodec/wmaprodata.h
+++ b/libavcodec/wmaprodata.h
@@ -352,7 +352,7 @@ static const uint16_t coef0_run[HUFF_COEF0_SIZE] = {
1, 0, 1, 0, 1, 0,
};
-static const uint16_t coef0_level[HUFF_COEF0_SIZE] = {
+static const float coef0_level[HUFF_COEF0_SIZE] = {
0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -393,7 +393,7 @@ static const uint16_t coef1_run[HUFF_COEF1_SIZE] = {
1, 0, 1, 0, 1, 0, 1, 0, 0, 0,
};
-static const uint16_t coef1_level[HUFF_COEF1_SIZE] = {
+static const float coef1_level[HUFF_COEF1_SIZE] = {
0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,