libavcodec/decode.c:608:9: warning: variable 'ret' is
used uninitialized whenever 'if' condition is false
---
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);
--
2.12.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel