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
This commit is contained in:
Reimar Döffinger 2008-10-04 21:11:58 +00:00
parent 88e2a9aebc
commit 6bc03a695b
1 changed files with 1 additions and 1 deletions

View File

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