Commit 2f88c475 authored by michaelni's avatar michaelni

10l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1688 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e838f8ed
......@@ -78,6 +78,7 @@ static int raw_decode(AVCodecContext *avctx,
uint8_t *buf, int buf_size)
{
RawVideoContext *context = avctx->priv_data;
int bytesNeeded;
AVPicture * picture = (AVPicture *) data;
......@@ -88,7 +89,7 @@ static int raw_decode(AVCodecContext *avctx,
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment