avcodec/flashsv: Return error if initializing zlib fails

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/362/head
Andreas Rheinhardt 4 years ago committed by Andreas Rheinhardt
parent 856c1402fe
commit de1d67932b
  1. 2
      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;

Loading…
Cancel
Save