diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-04-03 21:58:15 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-04-10 09:04:41 -0400 |
commit | efddf2c09aed7400c73ecf327f86a4d0452b94b5 (patch) | |
tree | 4c98a754dbb62a5d7398b761904b1207a1339032 | |
parent | 839010aca9713b5cd6ebe7a1db7e805c3625b168 (diff) | |
download | ffmpeg-efddf2c09aed7400c73ecf327f86a4d0452b94b5.tar.gz |
decode: Initialize ret before using it
libavcodec/decode.c:608:9: warning: variable 'ret' is
used uninitialized whenever 'if' condition is false
-rw-r--r-- | libavcodec/decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |