diff --git a/libav/aviobuf.c b/libav/aviobuf.c index 71f4b64dc7..6c23088d91 100644 --- a/libav/aviobuf.c +++ b/libav/aviobuf.c @@ -519,7 +519,7 @@ static void dyn_buf_write(void *opaque, UINT8 *buf, int buf_size) if (!new_allocated_size) new_allocated_size = new_size; else - new_allocated_size = (new_allocated_size * 3) / 2; + new_allocated_size = (new_allocated_size * 3) / 2 + 1; } if (new_allocated_size > d->allocated_size) {