changeset 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 ff78dd8e198a
children 38269a4cfe68
files aviobuf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;