Commit c4735eef authored by Michael Niedermayer's avatar Michael Niedermayer

loco: silence warning: decoded may be used uninitialized in this function

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 03678a32
......@@ -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,
-p->linesize[0], buf, buf_size, 4);
break;
default:
av_assert0(0);
}
if (decoded < 0 || decoded > 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