diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-04-25 10:25:14 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-04-25 10:25:14 +0000 |
commit | 7204850ea972813a50b52b21345fdda4c0b96ee5 (patch) | |
tree | 40b14e418caaab197cf5aa9fb44085f66a36da91 | |
parent | 4a291c90fe7f51eb32742a4a04cdaf144521334a (diff) | |
download | ffmpeg-7204850ea972813a50b52b21345fdda4c0b96ee5.tar.gz |
Fix the COOKDEBUG code
Originally committed as revision 18684 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/cook.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 59d3ef23f9..5c3e71115a 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -1033,23 +1033,23 @@ static void dump_cook_context(COOKContext *q) //int i=0; #define PRINT(a,b) av_log(q->avctx,AV_LOG_ERROR," %s = %d\n", a, b); av_log(q->avctx,AV_LOG_ERROR,"COOKextradata\n"); - av_log(q->avctx,AV_LOG_ERROR,"cookversion=%x\n",q->cookversion); - if (q->cookversion > STEREO) { - PRINT("js_subband_start",q->js_subband_start); - PRINT("js_vlc_bits",q->js_vlc_bits); + av_log(q->avctx,AV_LOG_ERROR,"cookversion=%x\n",q->subpacket[0].cookversion); + if (q->subpacket[0].cookversion > STEREO) { + PRINT("js_subband_start",q->subpacket[0].js_subband_start); + PRINT("js_vlc_bits",q->subpacket[0].js_vlc_bits); } av_log(q->avctx,AV_LOG_ERROR,"COOKContext\n"); PRINT("nb_channels",q->nb_channels); PRINT("bit_rate",q->bit_rate); PRINT("sample_rate",q->sample_rate); - PRINT("samples_per_channel",q->samples_per_channel); - PRINT("samples_per_frame",q->samples_per_frame); - PRINT("subbands",q->subbands); + PRINT("samples_per_channel",q->subpacket[0].samples_per_channel); + PRINT("samples_per_frame",q->subpacket[0].samples_per_frame); + PRINT("subbands",q->subpacket[0].subbands); PRINT("random_state",q->random_state); - PRINT("js_subband_start",q->js_subband_start); - PRINT("log2_numvector_size",q->log2_numvector_size); - PRINT("numvector_size",q->numvector_size); - PRINT("total_subbands",q->total_subbands); + PRINT("js_subband_start",q->subpacket[0].js_subband_start); + PRINT("log2_numvector_size",q->subpacket[0].log2_numvector_size); + PRINT("numvector_size",q->subpacket[0].numvector_size); + PRINT("total_subbands",q->subpacket[0].total_subbands); } #endif |