# HG changeset patch # User michaelni # Date 1047894819 0 # Node ID e3c231c7eb047db62bf48c394ee8bc580fccf294 # Parent 6842feb093c1c53117aa51ffedfa25e87a2a29d9 10l diff -r 6842feb093c1 -r e3c231c7eb04 raw.c --- a/raw.c Sun Mar 16 21:03:20 2003 +0000 +++ b/raw.c Mon Mar 17 09:53:39 2003 +0000 @@ -78,6 +78,7 @@ uint8_t *buf, int buf_size) { RawVideoContext *context = avctx->priv_data; + int bytesNeeded; AVPicture * picture = (AVPicture *) data; @@ -88,7 +89,7 @@ return buf_size; } - int bytesNeeded = context->length - (context->p - context->buffer); + bytesNeeded = context->length - (context->p - context->buffer); if (buf_size < bytesNeeded) { memcpy(context->p, buf, buf_size); context->p += buf_size;