diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-17 07:25:51 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-20 21:32:30 +0400 |
commit | bf909fc456156d66f522930b636fa0226ddcae7b (patch) | |
tree | 99c89ca2d57ff678e7b75ce9ee40115a39a35348 /libavcodec/libmp3lame.c | |
parent | 469d2a8e8e07a080cfadb6368de86043b43e20d2 (diff) |
libmp3lame: convert some debugging code to av_dlog()
also remove unneeded commented-out full frame data debugging
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r-- | libavcodec/libmp3lame.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index 6ce4f648a6..2b8c1456b9 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -195,17 +195,14 @@ static int MP3lame_encode_frame(AVCodecContext *avctx, unsigned char *frame, return 0; len = mp3len(s->buffer, NULL, NULL); - //av_log(avctx, AV_LOG_DEBUG, "in:%d packet-len:%d index:%d\n", - // avctx->frame_size, len, s->buffer_index); + av_dlog(avctx, "in:%d packet-len:%d index:%d\n", avctx->frame_size, len, + s->buffer_index); if (len <= s->buffer_index) { memcpy(frame, s->buffer, len); s->buffer_index -= len; memmove(s->buffer, s->buffer + len, s->buffer_index); // FIXME fix the audio codec API, so we do not need the memcpy() - /*for(i=0; i<len; i++) { - av_log(avctx, AV_LOG_DEBUG, "%2X ", frame[i]); - }*/ return len; } else return 0; |