Mercurial > libavcodec.hg
comparison cook.c @ 9557:c740baa765a4 libavcodec
Fix the COOKDEBUG code
author | banan |
---|---|
date | Sat, 25 Apr 2009 10:25:14 +0000 |
parents | e8c7a09475d5 |
children | 4fa6581c6ee1 |
comparison
equal
deleted
inserted
replaced
9556:e8c7a09475d5 | 9557:c740baa765a4 |
---|---|
1031 static void dump_cook_context(COOKContext *q) | 1031 static void dump_cook_context(COOKContext *q) |
1032 { | 1032 { |
1033 //int i=0; | 1033 //int i=0; |
1034 #define PRINT(a,b) av_log(q->avctx,AV_LOG_ERROR," %s = %d\n", a, b); | 1034 #define PRINT(a,b) av_log(q->avctx,AV_LOG_ERROR," %s = %d\n", a, b); |
1035 av_log(q->avctx,AV_LOG_ERROR,"COOKextradata\n"); | 1035 av_log(q->avctx,AV_LOG_ERROR,"COOKextradata\n"); |
1036 av_log(q->avctx,AV_LOG_ERROR,"cookversion=%x\n",q->cookversion); | 1036 av_log(q->avctx,AV_LOG_ERROR,"cookversion=%x\n",q->subpacket[0].cookversion); |
1037 if (q->cookversion > STEREO) { | 1037 if (q->subpacket[0].cookversion > STEREO) { |
1038 PRINT("js_subband_start",q->js_subband_start); | 1038 PRINT("js_subband_start",q->subpacket[0].js_subband_start); |
1039 PRINT("js_vlc_bits",q->js_vlc_bits); | 1039 PRINT("js_vlc_bits",q->subpacket[0].js_vlc_bits); |
1040 } | 1040 } |
1041 av_log(q->avctx,AV_LOG_ERROR,"COOKContext\n"); | 1041 av_log(q->avctx,AV_LOG_ERROR,"COOKContext\n"); |
1042 PRINT("nb_channels",q->nb_channels); | 1042 PRINT("nb_channels",q->nb_channels); |
1043 PRINT("bit_rate",q->bit_rate); | 1043 PRINT("bit_rate",q->bit_rate); |
1044 PRINT("sample_rate",q->sample_rate); | 1044 PRINT("sample_rate",q->sample_rate); |
1045 PRINT("samples_per_channel",q->samples_per_channel); | 1045 PRINT("samples_per_channel",q->subpacket[0].samples_per_channel); |
1046 PRINT("samples_per_frame",q->samples_per_frame); | 1046 PRINT("samples_per_frame",q->subpacket[0].samples_per_frame); |
1047 PRINT("subbands",q->subbands); | 1047 PRINT("subbands",q->subpacket[0].subbands); |
1048 PRINT("random_state",q->random_state); | 1048 PRINT("random_state",q->random_state); |
1049 PRINT("js_subband_start",q->js_subband_start); | 1049 PRINT("js_subband_start",q->subpacket[0].js_subband_start); |
1050 PRINT("log2_numvector_size",q->log2_numvector_size); | 1050 PRINT("log2_numvector_size",q->subpacket[0].log2_numvector_size); |
1051 PRINT("numvector_size",q->numvector_size); | 1051 PRINT("numvector_size",q->subpacket[0].numvector_size); |
1052 PRINT("total_subbands",q->total_subbands); | 1052 PRINT("total_subbands",q->subpacket[0].total_subbands); |
1053 } | 1053 } |
1054 #endif | 1054 #endif |
1055 | 1055 |
1056 static av_cold int cook_count_channels(unsigned int mask){ | 1056 static av_cold int cook_count_channels(unsigned int mask){ |
1057 int i; | 1057 int i; |