# HG changeset patch # User al3x # Date 1057350724 0 # Node ID 1fd083c620d63396ab6f63414453e2c797bfe15d # Parent f574934c421977690039e79ae5c626dd9aacb4ae moved frame_count to wmadeccontext diff -r f574934c4219 -r 1fd083c620d6 wmadec.c --- a/wmadec.c Fri Jul 04 20:26:04 2003 +0000 +++ b/wmadec.c Fri Jul 04 20:32:04 2003 +0000 @@ -111,6 +111,10 @@ float lsp_pow_e_table[256]; float lsp_pow_m_table1[(1 << LSP_POW_BITS)]; float lsp_pow_m_table2[(1 << LSP_POW_BITS)]; + +#ifdef TRACE + int frame_count; +#endif } WMADecodeContext; typedef struct CoefVLCTable { @@ -125,8 +129,6 @@ #include "wmadata.h" #ifdef TRACE -int frame_count = 0; - static void dump_shorts(const char *name, const short *tab, int n) { int i; @@ -694,7 +696,9 @@ int nb_coefs[MAX_CHANNELS]; float mdct_norm; - tprintf("***decode_block: %d:%d\n", frame_count - 1, s->block_num); +#ifdef TRACE + tprintf("***decode_block: %d:%d\n", s->frame_count - 1, s->block_num); +#endif /* compute current block length */ if (s->use_variable_block_len) { @@ -1127,7 +1131,9 @@ int16_t *ptr; float *iptr; - tprintf("***decode_frame: %d size=%d\n", frame_count++, s->frame_len); +#ifdef TRACE + tprintf("***decode_frame: %d size=%d\n", s->frame_count++, s->frame_len); +#endif /* read each block */ s->block_num = 0;