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:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-07 01:17:13 +0300
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-10 03:50:04 +0300
commit9bcd40c29804787ef520fe9036ed87ff668ffe5d (patch)
tree341aa17dbc23de1fdd7a77bbb984231294c5fb49 /libavcodec/decode.c
parent04ee1b8da56407268ed1a49ac334d0c8965eaa7d (diff)
lavc/decode: Initialize return value for get_format() failure.
Silences a warning: libavcodec/decode.c:1378:13: warning: variable 'ret' is used uninitialized whenever 'if' condition is true
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index c89c77c43a..a32ff2fcd3 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1378,6 +1378,7 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
if (i == n) {
av_log(avctx, AV_LOG_ERROR, "Invalid return from get_format(): "
"%s not in possible list.\n", desc->name);
+ ret = AV_PIX_FMT_NONE;
break;
}