avcodec/flashsv: Return error if initializing zlib fails

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-11-29 21:58:47 +01:00 committed by Andreas Rheinhardt
parent 856c1402fe
commit de1d67932b

View File

@ -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;