From efddf2c09aed7400c73ecf327f86a4d0452b94b5 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Mon, 3 Apr 2017 21:58:15 +0200 Subject: [PATCH] decode: Initialize ret before using it libavcodec/decode.c:608:9: warning: variable 'ret' is used uninitialized whenever 'if' condition is false --- libavcodec/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index e4f6a0d7270..8aa27095b63 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -590,7 +590,7 @@ static int compat_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt) { AVCodecInternal *avci = avctx->internal; - int ret; + int ret = 0; av_assert0(avci->compat_decode_consumed == 0); -- 2.39.5