[FFmpeg-cvslog] mcdec: suppress "warning: a/vst may be used uninitialized in this function"
Michael Niedermayer
git at videolan.org
Mon Dec 24 18:32:59 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 24 18:21:46 2012 +0100| [70d5cd103a72d9a6a82244bfe9dd82f28cc429fa] | committer: Michael Niedermayer
mcdec: suppress "warning: a/vst 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=70d5cd103a72d9a6a82244bfe9dd82f28cc429fa
---
libavformat/mvdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c
index 15e1151..bb1c5d0 100644
--- a/libavformat/mvdec.c
+++ b/libavformat/mvdec.c
@@ -229,7 +229,7 @@ static int mv_read_header(AVFormatContext *avctx)
{
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
- AVStream *ast, *vst;
+ AVStream *ast = NULL, *vst = NULL; //initialization to suppress warning
int version, i;
avio_skip(pb, 4);
More information about the ffmpeg-cvslog
mailing list