[FFmpeg-cvslog] Revert "libmp3lame: use the correct remaining buffer size when flushing"
Reinhard Tartler
git at videolan.org
Sun Apr 7 15:54:20 CEST 2013
ffmpeg | branch: release/0.10 | Reinhard Tartler <siretart at tauware.de> | Thu Mar 14 17:55:01 2013 +0100| [ca335f50002ff443e12cb7bb26b9fd06183f79a1] | committer: Reinhard Tartler
Revert "libmp3lame: use the correct remaining buffer size when flushing"
This reverts commit 5dbb3298b9c1d7beb41c7d3ab19f86d6e027e43d, which was
mistakenly backported.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca335f50002ff443e12cb7bb26b9fd06183f79a1
---
libavcodec/libmp3lame.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 3e8d92a..f3c4528 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) {
More information about the ffmpeg-cvslog
mailing list