mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
libmp3lame: use the correct remaining buffer size when flushing
CC:libav-stable@libav.org
This commit is contained in:
parent
666fe5da47
commit
e984f47873
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user