Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-04-03 22:58:15 +0300
committerJames Almer <jamrial@gmail.com>2017-04-24 01:29:12 +0300
commit960b4d47612ec89cfdf0ff8b83bc7424ad4c754a (patch)
treed41f744212c8902fa83f6175a7be7a674911ee7d /libavcodec/decode.c
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)
Diffstat (limited to 'libavcodec/decode.c')
-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);