mirror of https://git.ffmpeg.org/ffmpeg.git
loco: silence warning: decoded may be used uninitialized in this function
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
03678a32bc
commit
c4735eef03
|
@ -238,6 +238,8 @@ static int decode_frame(AVCodecContext *avctx,
|
||||||
decoded = loco_decode_plane(l, p->data[0] + p->linesize[0]*(avctx->height-1) + 3, avctx->width, avctx->height,
|
decoded = loco_decode_plane(l, p->data[0] + p->linesize[0]*(avctx->height-1) + 3, avctx->width, avctx->height,
|
||||||
-p->linesize[0], buf, buf_size, 4);
|
-p->linesize[0], buf, buf_size, 4);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
av_assert0(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (decoded < 0 || decoded > buf_size)
|
if (decoded < 0 || decoded > buf_size)
|
||||||
|
|
Loading…
Reference in New Issue