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

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

Originally committed as revision 15555 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Reimar Döffinger 16 years ago
parent 88e2a9aebc
commit 6bc03a695b
  1. 2
      libavformat/aviobuf.c

@ -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;

Loading…
Cancel
Save