# HG changeset patch # User michael # Date 1231690656 0 # Node ID e7992bb162b2b862fc8676087c74a635f7920ae4 # Parent ea663d76fcfa3e6bd8dda43a14046c2a9eaeb5ab fix indention diff -r ea663d76fcfa -r e7992bb162b2 libmp3lame.c --- a/libmp3lame.c Sun Jan 11 16:16:33 2009 +0000 +++ b/libmp3lame.c Sun Jan 11 16:17:36 2009 +0000 @@ -175,10 +175,10 @@ } 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 @@ 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