summaryrefslogtreecommitdiff
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-03-16 08:57:36 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-19 12:41:59 +0100
commit6a85dfc830f51f1f5c2d36d4182d265c1ea3ba25 (patch)
treee7c2aefd4766229b73aef86bf3312563f70a658c /libavcodec/wmadec.c
parent1a3eb042c704dea190c644def5b32c9cee8832b8 (diff)
lavc: Replace av_dlog and tprintf with internal macros
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index 2141e388c9..8a907673de 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -56,16 +56,16 @@ static void dump_floats(WMACodecContext *s, const char *name,
{
int i;
- tprintf(s->avctx, "%s[%d]:\n", name, n);
+ ff_tlog(s->avctx, "%s[%d]:\n", name, n);
for (i = 0; i < n; i++) {
if ((i & 7) == 0)
- tprintf(s->avctx, "%4d: ", i);
- tprintf(s->avctx, " %8.*f", prec, tab[i]);
+ ff_tlog(s->avctx, "%4d: ", i);
+ ff_tlog(s->avctx, " %8.*f", prec, tab[i]);
if ((i & 7) == 7)
- tprintf(s->avctx, "\n");
+ ff_tlog(s->avctx, "\n");
}
if ((i & 7) != 0)
- tprintf(s->avctx, "\n");
+ ff_tlog(s->avctx, "\n");
}
#endif /* TRACE */
@@ -429,7 +429,7 @@ static int wma_decode_block(WMACodecContext *s)
FFTContext *mdct;
#ifdef TRACE
- tprintf(s->avctx, "***decode_block: %d:%d\n",
+ ff_tlog(s->avctx, "***decode_block: %d:%d\n",
s->frame_count - 1, s->block_num);
#endif /* TRACE */
@@ -641,7 +641,7 @@ static int wma_decode_block(WMACodecContext *s)
}
exp_power[j] = e2 / n;
last_high_band = j;
- tprintf(s->avctx, "%d: power=%f (%d)\n", j, exp_power[j], n);
+ ff_tlog(s->avctx, "%d: power=%f (%d)\n", j, exp_power[j], n);
}
exponents += n << bsize >> esize;
}
@@ -714,7 +714,7 @@ static int wma_decode_block(WMACodecContext *s)
/* no need to optimize this case because it should almost
* never happen */
if (!s->channel_coded[0]) {
- tprintf(s->avctx, "rare ms-stereo case happened\n");
+ ff_tlog(s->avctx, "rare ms-stereo case happened\n");
memset(s->coefs[0], 0, sizeof(float) * s->block_len);
s->channel_coded[0] = 1;
}
@@ -755,7 +755,7 @@ static int wma_decode_frame(WMACodecContext *s, float **samples,
int ret, ch;
#ifdef TRACE
- tprintf(s->avctx, "***decode_frame: %d size=%d\n",
+ ff_tlog(s->avctx, "***decode_frame: %d size=%d\n",
s->frame_count++, s->frame_len);
#endif /* TRACE */
@@ -799,7 +799,7 @@ static int wma_decode_superframe(AVCodecContext *avctx, void *data,
float **samples;
int samples_offset;
- tprintf(avctx, "***decode_superframe:\n");
+ ff_tlog(avctx, "***decode_superframe:\n");
if (buf_size == 0) {
s->last_superframe_len = 0;
@@ -904,7 +904,7 @@ static int wma_decode_superframe(AVCodecContext *avctx, void *data,
samples_offset += s->frame_len;
}
- av_dlog(s->avctx, "%d %d %d %d outbytes:%td eaten:%d\n",
+ ff_dlog(s->avctx, "%d %d %d %d outbytes:%td eaten:%d\n",
s->frame_len_bits, s->block_len_bits, s->frame_len, s->block_len,
(int8_t *) samples - (int8_t *) data, avctx->block_align);