diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-09-25 17:19:34 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-01 10:24:28 +0200 |
commit | 6f6b0311a339c748b7be5bc15bd496321b3261b2 (patch) | |
tree | 1e79ce99d60cc438d0ea6392ad6920a21f3a9efa /libavcodec/cook.c | |
parent | 72eaba5e4ffeba16ec0a7ee7a042b3205840b1d1 (diff) | |
download | ffmpeg-6f6b0311a339c748b7be5bc15bd496321b3261b2.tar.gz |
avcodec: Drop some silly commented-out av_log() invocations
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 0e7c497d03..1dec398748 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -420,11 +420,9 @@ static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table, bits_left = p->bits_per_subpacket - get_bits_count(&q->gb); - if (bits_left > q->samples_per_channel) { + if (bits_left > q->samples_per_channel) bits_left = q->samples_per_channel + ((bits_left - q->samples_per_channel) * 5) / 8; - //av_log(q->avctx, AV_LOG_ERROR, "bits_left = %d\n",bits_left); - } bias = -32; @@ -925,10 +923,7 @@ static int decode_subpacket(COOKContext *q, COOKSubpacket *p, { int sub_packet_size = p->size; int res; - /* packet dump */ - // for (i = 0; i < sub_packet_size ; i++) - // av_log(q->avctx, AV_LOG_ERROR, "%02x", inbuffer[i]); - // av_log(q->avctx, AV_LOG_ERROR, "\n"); + memset(q->decode_buffer_1, 0, sizeof(q->decode_buffer_1)); decode_bytes_and_gain(q, p, inbuffer, &p->gains1); |