mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
04ee1b8da5
commit
9bcd40c298
|
@ -1378,6 +1378,7 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
|
||||||
if (i == n) {
|
if (i == n) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Invalid return from get_format(): "
|
av_log(avctx, AV_LOG_ERROR, "Invalid return from get_format(): "
|
||||||
"%s not in possible list.\n", desc->name);
|
"%s not in possible list.\n", desc->name);
|
||||||
|
ret = AV_PIX_FMT_NONE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue