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:
parent
88e2a9aebc
commit
6bc03a695b
@ -711,7 +711,7 @@ typedef struct DynBuffer {
|
|||||||
static int dyn_buf_write(void *opaque, uint8_t *buf, int buf_size)
|
static int dyn_buf_write(void *opaque, uint8_t *buf, int buf_size)
|
||||||
{
|
{
|
||||||
DynBuffer *d = opaque;
|
DynBuffer *d = opaque;
|
||||||
int new_size, new_allocated_size;
|
unsigned new_size, new_allocated_size;
|
||||||
|
|
||||||
/* reallocate buffer if needed */
|
/* reallocate buffer if needed */
|
||||||
new_size = d->pos + buf_size;
|
new_size = d->pos + buf_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user