diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index 8448a8c285..7855416567 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -126,6 +126,9 @@ static int flashsv2_prime(FlashSVContext *s, uint8_t *src, int size) z_stream zs; int zret; // Zlib return code + if (!src) + return AVERROR_INVALIDDATA; + zs.zalloc = NULL; zs.zfree = NULL; zs.opaque = NULL;