summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-07-15 01:35:46 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-07-15 01:35:46 +0000
commit76d357fd231d4e0def37c24bcf31568225733652 (patch)
tree2dc21b2b31622d9a70593a34ef4a7dd40022b72b /libavcodec
parenta39532b0d9790d80d0a949b511a374465b64511e (diff)
remove a debugging function and variable, and remove the commented-out code which uses them.
Originally committed as revision 9681 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3dec.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index e858f07569..8070549fd5 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1545,22 +1545,6 @@ static void do_downmix(AC3DecodeContext *ctx)
}
}
-static void dump_floats(const char *name, int prec, const float *tab, int n)
-{
- int i;
-
- av_log(NULL, AV_LOG_INFO, "%s[%d]:\n", name, n);
- for(i=0;i<n;i++) {
- if ((i & 7) == 0)
- av_log(NULL, AV_LOG_INFO, "%4d: ", i);
- av_log(NULL, AV_LOG_INFO, " %8.*f", prec, tab[i]);
- if ((i & 7) == 7)
- av_log(NULL, AV_LOG_INFO, "\n");
- }
- if ((i & 7) != 0)
- av_log(NULL, AV_LOG_INFO, "\n");
-}
-
/* This function performs the imdct on 256 sample transform
* coefficients.
*/
@@ -1894,8 +1878,6 @@ static int ac3_parse_audio_block(AC3DecodeContext * ctx)
av_log(NULL, AV_LOG_ERROR, "Error in routine get_transform_coeffs\n");
return -1;
}
- /*for (i = 0; i < nfchans; i++)
- dump_floats("channel transform coefficients", 10, ctx->transform_coeffs[i + 1], BLOCK_SIZE);*/
/* recover coefficients if rematrixing is in use */
if (ctx->rematflg)
@@ -1904,8 +1886,6 @@ static int ac3_parse_audio_block(AC3DecodeContext * ctx)
do_downmix(ctx);
do_imdct(ctx);
- /*for(i = 0; i < nfchans; i++)
- dump_floats("channel output", 10, ctx->output[i + 1], BLOCK_SIZE);*/
return 0;
}
@@ -1920,8 +1900,6 @@ static inline int16_t convert(int32_t i)
return (i - 0x43c00000);
}
-static int frame_count = 0;
-
/* Decode ac3 frame.
*
* @param avctx Pointer to AVCodecContext
@@ -1941,8 +1919,6 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
for (i = 0; i < 6; i++)
int_ptr[i] = (int32_t *)(&ctx->output[i]);
- //av_log(NULL, AV_LOG_INFO, "decoding frame %d buf_size = %d\n", frame_count++, buf_size);
-
//Synchronize the frame.
frame_start = ac3_synchronize(buf, buf_size);
if (frame_start == -1) {