[FFmpeg-cvslog] libmp3lame: use the correct remaining buffer size when flushing

Justin Ruggles git at videolan.org
Tue Mar 12 21:46:07 CET 2013


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Jan 16 17:52:55 2013 -0500| [e984f47873258b600fd88423f40e3cdaad179190] | committer: Justin Ruggles

libmp3lame: use the correct remaining buffer size when flushing

CC:libav-stable at libav.org

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e984f47873258b600fd88423f40e3cdaad179190
---

 libavcodec/libmp3lame.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 156665c..2e501ca 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -217,7 +217,7 @@ static int mp3lame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
         }
     } else {
         lame_result = lame_encode_flush(s->gfp, s->buffer + s->buffer_index,
-                                        BUFFER_SIZE - s->buffer_index);
+                                        s->buffer_size - s->buffer_index);
     }
     if (lame_result < 0) {
         if (lame_result == -1) {



More information about the ffmpeg-cvslog mailing list