[FFmpeg-soc] [soc]: r3960 - in wmapro: wma3data.h wma3dec.c

faust3 subversion at mplayerhq.hu
Thu Jan 15 22:04:55 CET 2009


Author: faust3
Date: Thu Jan 15 22:04:55 2009
New Revision: 3960

Log:
use smaller datatypes for the tables where possible

Modified:
   wmapro/wma3data.h
   wmapro/wma3dec.c

Modified: wmapro/wma3data.h
==============================================================================
--- wmapro/wma3data.h	Thu Jan 15 21:44:00 2009	(r3959)
+++ wmapro/wma3data.h	Thu Jan 15 22:04:55 2009	(r3960)
@@ -405,7 +405,7 @@ static const uint8_t ff_wma3_huff_rlc_bi
 };
 
 
-static const short ff_wma3_run_0[] = {
+static const uint8_t ff_wma3_run_0[] = {
      0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17,
     18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
     36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
@@ -423,7 +423,7 @@ static const short ff_wma3_run_0[] = {
      0,  0,  0,  0,
 };
 
-static const short ff_wma3_level_0[] = {
+static const uint8_t ff_wma3_level_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,  1,  1,
@@ -442,7 +442,7 @@ static const short ff_wma3_level_0[] = {
 };
 
 
-static const short ff_wma3_run_1[] = {
+static const uint8_t ff_wma3_run_1[] = {
       0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,  13,
      14,  15,  16,  17,  18,  19,  20,  21,  22,  23,  24,  25,  26,  27,
      28,  29,  30,  31,  32,  33,  34,  35,  36,  37,  38,  39,  40,  41,
@@ -465,7 +465,7 @@ static const short ff_wma3_run_1[] = {
       1,   0,   1,   0,   0,   0,
 };
 
-static const short ff_wma3_level_1[] = {
+static const uint8_t ff_wma3_level_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,

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Thu Jan 15 21:44:00 2009	(r3959)
+++ wmapro/wma3dec.c	Thu Jan 15 22:04:55 2009	(r3960)
@@ -778,8 +778,8 @@ static int decode_coeffs(WMA3DecodeConte
     int rl_mode = 0;
     int cur_coeff = 0;
     int last_write = 0;
-    const short* run;
-    const short* level;
+    const uint8_t* run;
+    const uint8_t* level;
 
     av_log(s->avctx,AV_LOG_DEBUG,"decode  coefs for channel %i\n",c);
 



More information about the FFmpeg-soc mailing list