adx: rename struct PREV to ADXChannelState
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 19 Nov 2011 22:05:44 +0000 (17:05 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 26 Nov 2011 21:25:06 +0000 (16:25 -0500)
libavcodec/adx.h
libavcodec/adxdec.c
libavcodec/adxenc.c

index c4206963d5dfa6f22dbb811a16885f4fd68bd94b..bba09aed8b31987305ba152b23a80f939b9a5619 100644 (file)
 
 typedef struct {
     int s1,s2;
-} PREV;
+} ADXChannelState;
 
 typedef struct {
-    PREV prev[2];
+    ADXChannelState prev[2];
     int header_parsed;
     unsigned char dec_temp[18*2];
     int in_temp;
index 79fcf13c31facb0fe7a202df8f7e9be1f9c7fa68..0a9e60118efd4f9a3f5c88ffd3b6470d40a404fa 100644 (file)
@@ -40,7 +40,8 @@ static av_cold int adx_decode_init(AVCodecContext *avctx)
 
 /* 18 bytes <-> 32 samples */
 
-static void adx_decode(short *out,const unsigned char *in,PREV *prev)
+static void adx_decode(short *out,const unsigned char *in,
+                       ADXChannelState *prev)
 {
     int scale = AV_RB16(in);
     int i;
@@ -73,7 +74,8 @@ static void adx_decode(short *out,const unsigned char *in,PREV *prev)
 
 }
 
-static void adx_decode_stereo(short *out,const unsigned char *in,PREV *prev)
+static void adx_decode_stereo(short *out,const unsigned char *in,
+                              ADXChannelState *prev)
 {
     short tmp[32*2];
     int i;
index 61ba07a35d50d213996188c46c531c4b60f7f7a4..fde0b8239e338d8dba2b35ec03b28a560c2aa27c 100644 (file)
@@ -34,7 +34,8 @@
 
 /* 18 bytes <-> 32 samples */
 
-static void adx_encode(unsigned char *adx,const short *wav,PREV *prev)
+static void adx_encode(unsigned char *adx,const short *wav,
+                       ADXChannelState *prev)
 {
     int scale;
     int i;