From de1d67932b3b3e7b2218e25990cb7ccba8cc0b13 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 29 Nov 2020 21:58:47 +0100 Subject: [PATCH] avcodec/flashsv: Return error if initializing zlib fails Signed-off-by: Andreas Rheinhardt --- libavcodec/flashsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index 4240091d92..054d024235 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -126,7 +126,7 @@ static av_cold int flashsv_decode_init(AVCodecContext *avctx) zret = inflateInit(&s->zstream); if (zret != Z_OK) { av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret); - return 1; + return AVERROR_EXTERNAL; } avctx->pix_fmt = AV_PIX_FMT_BGR24;