aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
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:54:28 +0100
commit5dbb3298b9c1d7beb41c7d3ab19f86d6e027e43d (patch)
treeead20ae2f570dc3f5ad46d563ca57a3b29f066c4 /libavcodec
parente10af023b2579791d4de7a16d4958229dc62be03 (diff)
downloadffmpeg-5dbb3298b9c1d7beb41c7d3ab19f86d6e027e43d.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> (cherry picked from commit b77d9cbbd5050eda75030c8926241af3dbe1a8df) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libmp3lame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index f3c4528c07..3e8d92a3a5 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,
- BUFFER_SIZE - s->buffer_index);
+ s->buffer_size - s->buffer_index);
}
if (lame_result < 0) {