On Fri, Jul 29, 2011 at 4:02 AM, Diego Biurrun <[email protected]> wrote: > --- > libavcodec/qdm2.c | 49 ------------------------------------------------- > 1 files changed, 0 insertions(+), 49 deletions(-) > > diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c > index 2a45495..5ee72b6 100644 > --- a/libavcodec/qdm2.c > +++ b/libavcodec/qdm2.c > @@ -1654,52 +1654,6 @@ static av_cold void qdm2_init(QDM2Context *q) { > } > > > -#if 0 > -static void dump_context(QDM2Context *q) > -{ > - int i; > -#define PRINT(a,b) av_log(NULL,AV_LOG_DEBUG," %s = %d\n", a, b); > - PRINT("compressed_data",q->compressed_data); > - PRINT("compressed_size",q->compressed_size); > - PRINT("frame_size",q->frame_size); > - PRINT("checksum_size",q->checksum_size); > - PRINT("channels",q->channels); > - PRINT("nb_channels",q->nb_channels); > - PRINT("fft_frame_size",q->fft_frame_size); > - PRINT("fft_size",q->fft_size); > - PRINT("sub_sampling",q->sub_sampling); > - PRINT("fft_order",q->fft_order); > - PRINT("group_order",q->group_order); > - PRINT("group_size",q->group_size); > - PRINT("sub_packet",q->sub_packet); > - PRINT("frequency_range",q->frequency_range); > - PRINT("has_errors",q->has_errors); > - PRINT("fft_tone_end",q->fft_tone_end); > - PRINT("fft_tone_start",q->fft_tone_start); > - PRINT("fft_coefs_index",q->fft_coefs_index); > - PRINT("coeff_per_sb_select",q->coeff_per_sb_select); > - PRINT("cm_table_select",q->cm_table_select); > - PRINT("noise_idx",q->noise_idx); > - > - for (i = q->fft_tone_start; i < q->fft_tone_end; i++) > - { > - FFTTone *t = &q->fft_tones[i]; > - > - av_log(NULL,AV_LOG_DEBUG,"Tone (%d) dump:\n", i); > - av_log(NULL,AV_LOG_DEBUG," level = %f\n", t->level); > -// PRINT(" level", t->level); > - PRINT(" phase", t->phase); > - PRINT(" phase_shift", t->phase_shift); > - PRINT(" duration", t->duration); > - PRINT(" samples_im", t->samples_im); > - PRINT(" samples_re", t->samples_re); > - PRINT(" table", t->table); > - } > - > -} > -#endif > - > - > /** > * Init parameters from codec extradata > */ > @@ -1868,7 +1822,6 @@ static av_cold int qdm2_decode_init(AVCodecContext > *avctx) > > avctx->sample_fmt = AV_SAMPLE_FMT_S16; > > -// dump_context(s); > return 0; > } > > @@ -1892,8 +1845,6 @@ static int qdm2_decode (QDM2Context *q, const uint8_t > *in, int16_t *out) > q->compressed_data = in; > q->compressed_size = q->checksum_size; > > -// dump_context(q); > - > /* copy old block, clear new block of output samples */ > memmove(q->output_buffer, &q->output_buffer[frame_size], frame_size * > sizeof(float)); > memset(&q->output_buffer[frame_size], 0, frame_size * sizeof(float)); > --
I think this should be kept for the time being, maybe cleaned up by guarding with DEBUG and defining it as nop otherwise _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
