summaryrefslogtreecommitdiff
path: root/libavcodec/flashsv.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-29 21:58:47 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-02 03:14:24 +0200
commitde1d67932b3b3e7b2218e25990cb7ccba8cc0b13 (patch)
treed921ded0636064afd043d1f59e0b846e2b628b4a /libavcodec/flashsv.c
parent856c1402fe808b08b5b35ac9bc337ca8bd317743 (diff)
downloadffmpeg-de1d67932b3b3e7b2218e25990cb7ccba8cc0b13.tar.gz
avcodec/flashsv: Return error if initializing zlib fails
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r--libavcodec/flashsv.c2
1 files changed, 1 insertions, 1 deletions
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;