Mercurial > libavformat.hg
diff aviobuf.c @ 3982:1505b1ddab11 libavformat
Make size variables in dyn_buf_write unsigned so gcc will not optimize the
check away (due to assuming signed overflows do not happen).
author | reimar |
---|---|
date | Sat, 04 Oct 2008 21:11:58 +0000 |
parents | 549a09cf23fe |
children | 692e5298a27a |
line wrap: on
line diff
--- a/aviobuf.c Sat Oct 04 11:20:02 2008 +0000 +++ b/aviobuf.c Sat Oct 04 21:11:58 2008 +0000 @@ -711,7 +711,7 @@ 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;