libmp3lame: use the correct remaining buffer size when flushing

CC:libav-stable@libav.org
This commit is contained in:
Justin Ruggles
2013-03-08 14:52:05 -05:00
parent 666fe5da47
commit e984f47873
+1 -1
View File
@@ -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) {