diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-04-03 21:58:15 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-04-23 19:29:12 -0300 |
commit | 960b4d47612ec89cfdf0ff8b83bc7424ad4c754a (patch) | |
tree | d41f744212c8902fa83f6175a7be7a674911ee7d /libavcodec/decode.c | |
parent | f95c81ce104554b6860d94724a681a1bac0c4fbd (diff) | |
download | ffmpeg-960b4d47612ec89cfdf0ff8b83bc7424ad4c754a.tar.gz |
decode: Initialize ret before using it
libavcodec/decode.c:608:9: warning: variable 'ret' is
used uninitialized whenever 'if' condition is false
(cherry picked from libav commit efddf2c09aed7400c73ecf327f86a4d0452b94b5)
Diffstat (limited to 'libavcodec/decode.c')
-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 debbe36e0f..6ff3c401ba 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -695,7 +695,7 @@ static int compat_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, const AVPacket *pkt) { AVCodecInternal *avci = avctx->internal; - int ret; + int ret = 0; av_assert0(avci->compat_decode_consumed == 0); |