From c4735eef033e7638fa103f2dd292898945f7f24f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 28 Feb 2013 18:10:30 +0100 Subject: [PATCH] loco: silence warning: decoded may be used uninitialized in this function Signed-off-by: Michael Niedermayer --- libavcodec/loco.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/loco.c b/libavcodec/loco.c index e21e693166..2b7116685d 100644 --- a/libavcodec/loco.c +++ b/libavcodec/loco.c @@ -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)