diff ac3dec.h @ 7026:4bd2ccb0619e libavcodec

store cpl_in_use for all blocks in decode context
author jbr
date Sat, 07 Jun 2008 22:30:43 +0000
parents acf98a472f74
children 1edec36c02c5
line wrap: on
line diff
--- a/ac3dec.h	Sat Jun 07 22:30:39 2008 +0000
+++ b/ac3dec.h	Sat Jun 07 22:30:43 2008 +0000
@@ -42,6 +42,7 @@
 
 #define AC3_MAX_COEFS   256
 #define AC3_BLOCK_SIZE  256
+#define MAX_BLOCKS        6
 
 typedef struct {
     AVCodecContext *avctx;                  ///< parent context
@@ -63,7 +64,7 @@
 ///@}
 
 ///@defgroup cpl standard coupling
-    int cpl_in_use;                         ///< coupling in use                        (cplinu)
+    int cpl_in_use[MAX_BLOCKS];             ///< coupling in use                        (cplinu)
     int channel_in_cpl[AC3_MAX_CHANNELS];   ///< channel in coupling                    (chincpl)
     int phase_flags_in_use;                 ///< phase flags in use                     (phsflginu)
     int phase_flags[18];                    ///< phase flags                            (phsflg)