summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-04-03 21:58:15 +0200
committerJames Almer <jamrial@gmail.com>2017-04-23 19:29:12 -0300
commit960b4d47612ec89cfdf0ff8b83bc7424ad4c754a (patch)
treed41f744212c8902fa83f6175a7be7a674911ee7d
parentf95c81ce104554b6860d94724a681a1bac0c4fbd (diff)
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)
-rw-r--r--libavcodec/decode.c2
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);