mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libmp3lame: convert some debugging code to av_dlog()
also remove unneeded commented-out full frame data debugging
This commit is contained in:
parent
469d2a8e8e
commit
bf909fc456
@ -195,17 +195,14 @@ static int MP3lame_encode_frame(AVCodecContext *avctx, unsigned char *frame,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
len = mp3len(s->buffer, NULL, NULL);
|
len = mp3len(s->buffer, NULL, NULL);
|
||||||
//av_log(avctx, AV_LOG_DEBUG, "in:%d packet-len:%d index:%d\n",
|
av_dlog(avctx, "in:%d packet-len:%d index:%d\n", avctx->frame_size, len,
|
||||||
// avctx->frame_size, len, s->buffer_index);
|
s->buffer_index);
|
||||||
if (len <= s->buffer_index) {
|
if (len <= s->buffer_index) {
|
||||||
memcpy(frame, s->buffer, len);
|
memcpy(frame, s->buffer, len);
|
||||||
s->buffer_index -= len;
|
s->buffer_index -= len;
|
||||||
|
|
||||||
memmove(s->buffer, s->buffer + len, s->buffer_index);
|
memmove(s->buffer, s->buffer + len, s->buffer_index);
|
||||||
// FIXME fix the audio codec API, so we do not need the memcpy()
|
// 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;
|
return len;
|
||||||
} else
|
} else
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user