aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2013-01-16 17:52:55 -0500
committerReinhard Tartler <siretart@tauware.de>2013-03-09 18:10:16 +0100
commitb77d9cbbd5050eda75030c8926241af3dbe1a8df (patch)
treedc9b04b48c95861102aa492ed9d8ddd9372e2025
parent905f5c8a1e94d224245480298b1854e103d71141 (diff)
downloadffmpeg-b77d9cbbd5050eda75030c8926241af3dbe1a8df.tar.gz
libmp3lame: use the correct remaining buffer size when flushing
CC:libav-stable@libav.org (cherry picked from commit e984f47873258b600fd88423f40e3cdaad179190) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r--libavcodec/libmp3lame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 264a0e2236..8746573224 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) {