aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-10-04 21:11:58 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-10-04 21:11:58 +0000
commit6bc03a695bc4c1ecd212263c4a3c9cf638d025e0 (patch)
tree036b00f1f238fc9b280e01ef81974fb03506248e /libavformat/aviobuf.c
parent88e2a9aebc2aeb7091552866a6208b30ae7471e6 (diff)
downloadffmpeg-6bc03a695bc4c1ecd212263c4a3c9cf638d025e0.tar.gz
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
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index ac7bb8f7fd..46458db20f 100644
--- a/libavformat/aviobuf.c
+++ b/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;