Module: libav Branch: release/9 Commit: b77d9cbbd5050eda75030c8926241af3dbe1a8df
Author: Justin Ruggles <[email protected]> Committer: Reinhard Tartler <[email protected]> Date: Wed Jan 16 17:52:55 2013 -0500 libmp3lame: use the correct remaining buffer size when flushing CC:[email protected] (cherry picked from commit e984f47873258b600fd88423f40e3cdaad179190) Signed-off-by: Reinhard Tartler <[email protected]> --- libavcodec/libmp3lame.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index 264a0e2..8746573 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) { _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
