v210dec: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent c9dc66375b
commit 53509d20ca
  1. 2
      libavcodec/v210dec.c

@ -126,7 +126,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
val = av_le2ne32(*src++);
*y++ = val & 0x3FF;
}
if (w < avctx->width - 3) {
*u++ = (val >> 10) & 0x3FF;
*y++ = (val >> 20) & 0x3FF;
@ -135,6 +134,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
*v++ = val & 0x3FF;
*y++ = (val >> 10) & 0x3FF;
}
}
psrc += stride;
y += pic->linesize[0] / 2 - avctx->width;

Loading…
Cancel
Save