From ca335f50002ff443e12cb7bb26b9fd06183f79a1 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Thu, 14 Mar 2013 17:55:01 +0100 Subject: [PATCH] Revert "libmp3lame: use the correct remaining buffer size when flushing" This reverts commit 5dbb3298b9c1d7beb41c7d3ab19f86d6e027e43d, which was mistakenly backported. --- libavcodec/libmp3lame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index 3e8d92a3a5..f3c4528c07 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -169,7 +169,7 @@ static int MP3lame_encode_frame(AVCodecContext *avctx, unsigned char *frame, } } else { lame_result = lame_encode_flush(s->gfp, s->buffer + s->buffer_index, - s->buffer_size - s->buffer_index); + BUFFER_SIZE - s->buffer_index); } if (lame_result < 0) {