[FFmpeg-cvslog] loco: silence warning: decoded may be used uninitialized in this function

Michael Niedermayer git at videolan.org
Thu Feb 28 18:16:11 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Feb 28 18:10:30 2013 +0100| [c4735eef033e7638fa103f2dd292898945f7f24f] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c4735eef033e7638fa103f2dd292898945f7f24f
---

 libavcodec/loco.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/loco.c b/libavcodec/loco.c
index e21e693..2b71166 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)



More information about the ffmpeg-cvslog mailing list