diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-01-11 16:17:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-01-11 16:17:36 +0000 |
commit | 203fa6b4d1e6d1de1740aaa34f73c0e0d219a17e (patch) | |
tree | 4952d596ad523a11fdb8b38540d1df24056cedcb /libavcodec/libmp3lame.c | |
parent | 2083648383d93917d482e69dd33e46cbd8404d31 (diff) | |
download | ffmpeg-203fa6b4d1e6d1de1740aaa34f73c0e0d219a17e.tar.gz |
fix indention
Originally committed as revision 16540 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r-- | libavcodec/libmp3lame.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index af783a0651..4483d2870a 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -175,10 +175,10 @@ static int MP3lame_encode_frame(AVCodecContext *avctx, } if(lame_result < 0){ - if(lame_result==-1) { - /* output buffer too small */ - av_log(avctx, AV_LOG_ERROR, "lame: output buffer too small (buffer index: %d, free bytes: %d)\n", s->buffer_index, BUFFER_SIZE - s->buffer_index); - } + if(lame_result==-1) { + /* output buffer too small */ + av_log(avctx, AV_LOG_ERROR, "lame: output buffer too small (buffer index: %d, free bytes: %d)\n", s->buffer_index, BUFFER_SIZE - s->buffer_index); + } return -1; } @@ -187,20 +187,20 @@ static int MP3lame_encode_frame(AVCodecContext *avctx, if(s->buffer_index<4) 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", avctx->frame_size, len, s->buffer_index); - if(len <= s->buffer_index){ - memcpy(frame, s->buffer, len); - s->buffer_index -= len; + if(len <= s->buffer_index){ + memcpy(frame, s->buffer, 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() /*for(i=0; i<len; i++){ av_log(avctx, AV_LOG_DEBUG, "%2X ", frame[i]); }*/ - return len; - }else - return 0; + return len; + }else + return 0; } static av_cold int MP3lame_encode_close(AVCodecContext *avctx) |