Mercurial > libavcodec.hg
changeset 1140:e3c231c7eb04 libavcodec
10l
author | michaelni |
---|---|
date | Mon, 17 Mar 2003 09:53:39 +0000 |
parents | 6842feb093c1 |
children | 6d6003cf89c2 |
files | raw.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;