summaryrefslogtreecommitdiff
path: root/libavcodec/libmp3lame.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2013-01-16 17:52:55 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2013-03-08 14:52:05 -0500
commite984f47873258b600fd88423f40e3cdaad179190 (patch)
tree65d8d9d3189f99f494fd773f3996b670f93cf98f /libavcodec/libmp3lame.c
parent666fe5da47d127074be7f0e2bac93db6af8b4a30 (diff)
downloadffmpeg-e984f47873258b600fd88423f40e3cdaad179190.tar.gz
libmp3lame: use the correct remaining buffer size when flushing
CC:libav-stable@libav.org
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r--libavcodec/libmp3lame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 156665c0d6..2e501cac0b 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) {