Commit e984f478 authored by Justin Ruggles's avatar Justin Ruggles

libmp3lame: use the correct remaining buffer size when flushing

CC:libav-stable@libav.org
parent 666fe5da
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment