mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02: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 {
|
} else {
|
||||||
lame_result = lame_encode_flush(s->gfp, s->buffer + s->buffer_index,
|
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 < 0) {
|
||||||
if (lame_result == -1) {
|
if (lame_result == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user