Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libav
diff options
context:
space:
mode:
Diffstat (limited to 'libav')
-rw-r--r--libav/aviobuf.c2
1 files changed, 1 insertions, 1 deletions
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) {