aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-03-17 09:53:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-17 09:53:39 +0000
commit6c949d129b8dbfc1c7cb0410cf1c80724a805fdb (patch)
tree0df9a090f43deffd846576486eda30d9566c9e92
parente8750b00764f5148cd93f466f9e832eb8589aba7 (diff)
downloadffmpeg-6c949d129b8dbfc1c7cb0410cf1c80724a805fdb.tar.gz
10l
Originally committed as revision 1688 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/raw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 9dc88e842d..3befbfc39b 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -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;