[FFmpeg-cvslog] r15555 - trunk/libavformat/aviobuf.c
reimar
subversion
Sat Oct 4 23:11:58 CEST 2008
Author: reimar
Date: Sat Oct 4 23:11:58 2008
New Revision: 15555
Log:
Make size variables in dyn_buf_write unsigned so gcc will not optimize the
check away (due to assuming signed overflows do not happen).
Modified:
trunk/libavformat/aviobuf.c
Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c (original)
+++ trunk/libavformat/aviobuf.c Sat Oct 4 23:11:58 2008
@@ -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;
More information about the ffmpeg-cvslog
mailing list