[FFmpeg-cvslog] r25945 - trunk/libavcodec/ac3enc.c

jbr subversion
Tue Dec 14 15:50:15 CET 2010


Author: jbr
Date: Tue Dec 14 15:50:15 2010
New Revision: 25945

Log:
cosmetics: rearrange AC3EncodeContext fields

Modified:
   trunk/libavcodec/ac3enc.c

Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c	Tue Dec 14 09:34:57 2010	(r25944)
+++ trunk/libavcodec/ac3enc.c	Tue Dec 14 15:50:15 2010	(r25945)
@@ -35,24 +35,28 @@
 
 typedef struct AC3EncodeContext {
     PutBitContext pb;
-    int nb_channels;
-    int nb_all_channels;
-    int lfe_channel;
-    const uint8_t *channel_map;
+
+    unsigned int bitstream_id;
+    unsigned int bitstream_mode;
+
     int bit_rate;
     unsigned int sample_rate;
-    unsigned int bitstream_id;
+    int sr_shift;
+    unsigned int sr_code; /* frequency */
+
     unsigned int frame_size_min; /* minimum frame size in case rounding is necessary */
     unsigned int frame_size; /* current frame size in words */
+    unsigned int frame_size_code;
     unsigned int bits_written;
     unsigned int samples_written;
-    int sr_shift;
-    unsigned int frame_size_code;
-    unsigned int sr_code; /* frequency */
-    unsigned int channel_mode;
+
+    int nb_all_channels;
+    int nb_channels;
     int lfe;
-    unsigned int bitstream_mode;
-    short last_samples[AC3_MAX_CHANNELS][256];
+    int lfe_channel;
+    unsigned int channel_mode;
+    const uint8_t *channel_map;
+
     unsigned int chbwcod[AC3_MAX_CHANNELS];
     int nb_coefs[AC3_MAX_CHANNELS];
 
@@ -62,8 +66,11 @@ typedef struct AC3EncodeContext {
     int coarse_snr_offset;
     int fast_gain_code[AC3_MAX_CHANNELS];
     int fine_snr_offset[AC3_MAX_CHANNELS];
+
     /* mantissa encoding */
     int mant1_cnt, mant2_cnt, mant4_cnt;
+
+    short last_samples[AC3_MAX_CHANNELS][256];
 } AC3EncodeContext;
 
 static int16_t costab[64];



More information about the ffmpeg-cvslog mailing list