avcodec/flashsv: Return error if initializing zlib fails
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
856c1402fe
commit
de1d67932b
@ -126,7 +126,7 @@ static av_cold int flashsv_decode_init(AVCodecContext *avctx)
|
|||||||
zret = inflateInit(&s->zstream);
|
zret = inflateInit(&s->zstream);
|
||||||
if (zret != Z_OK) {
|
if (zret != Z_OK) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret);
|
av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret);
|
||||||
return 1;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
avctx->pix_fmt = AV_PIX_FMT_BGR24;
|
avctx->pix_fmt = AV_PIX_FMT_BGR24;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user