[FFmpeg-cvslog] decode: Initialize ret before using it
Vittorio Giovara
git at videolan.org
Thu Oct 26 22:52:06 EEST 2017
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Apr 3 21:58:15 2017 +0200| [efddf2c09aed7400c73ecf327f86a4d0452b94b5] | committer: Vittorio Giovara
decode: Initialize ret before using it
libavcodec/decode.c:608:9: warning: variable 'ret' is
used uninitialized whenever 'if' condition is false
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=efddf2c09aed7400c73ecf327f86a4d0452b94b5
---
libavcodec/decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index e4f6a0d727..8aa27095b6 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);
More information about the ffmpeg-cvslog
mailing list