Commit 3aca6bc1 authored by reimar's avatar reimar

Make size variables in dyn_buf_write unsigned so gcc will not optimize the

check away (due to assuming signed overflows do not happen).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15555 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 72f096be
......@@ -711,7 +711,7 @@ typedef struct DynBuffer {
static int dyn_buf_write(void *opaque, uint8_t *buf, int buf_size)
{
DynBuffer *d = opaque;
int new_size, new_allocated_size;
unsigned new_size, new_allocated_size;
/* reallocate buffer if needed */
new_size = d->pos + buf_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