Commit 98341ed1 authored by philipjsg's avatar philipjsg

Fix a potential endless loop (nb (1 * 3) / 2 == 1)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@823 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 912b0fbb
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment