summaryrefslogtreecommitdiffstats
path: root/libavcodec/decode.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-06 23:17:13 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-10 01:50:04 +0100
commit9bcd40c29804787ef520fe9036ed87ff668ffe5d (patch)
tree341aa17dbc23de1fdd7a77bbb984231294c5fb49 /libavcodec/decode.c
parent04ee1b8da56407268ed1a49ac334d0c8965eaa7d (diff)
downloadffmpeg-streaming-9bcd40c29804787ef520fe9036ed87ff668ffe5d.zip
ffmpeg-streaming-9bcd40c29804787ef520fe9036ed87ff668ffe5d.tar.gz
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 c89c77c..a32ff2f 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;
}
OpenPOWER on IntegriCloud