changeset 7840:38dd4fd9f107 libavcodec

Remove ChannelData.lev var and use ChannelData.level instead
author vitor
date Tue, 09 Sep 2008 16:50:11 +0000
parents e6348a5656e0
children 991f4bb253fc
files mace.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mace.c	Tue Sep 09 14:47:47 2008 +0000
+++ b/mace.c	Tue Sep 09 16:50:11 2008 +0000
@@ -141,7 +141,7 @@
 #define QT_8S_2_16S(x) (((x) & 0xFF00) | (((x) >> 8) & 0xFF))
 
 typedef struct ChannelData {
-    int16_t index, lev, factor, prev2, previous, level;
+    int16_t index, factor, prev2, previous, level;
 } ChannelData;
 
 typedef struct MACEContext {
@@ -174,9 +174,9 @@
     else
         current = - 1 - tab2[((chd->index & 0x7f0) >> 4)*tab2_stride + 2*tab2_stride-val-1];
 
-    current = mace_broken_clip_int16(current + chd->lev);
+    current = mace_broken_clip_int16(current + chd->level);
 
-    chd->lev = current - (current >> 3);
+    chd->level = current - (current >> 3);
     *output = QT_8S_2_16S(current);
     if (( chd->index += tab1[val]-(chd->index >> 5) ) < 0)
         chd->index = 0;