Commit f116ca5e authored by Tristan Matthews's avatar Tristan Matthews
Browse files

vpx: fix segfault on decoding (refs #16836)

parent 147fec54
......@@ -108,8 +108,8 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
struct vpx_codec_ctx *ctx = &dec->p_sys->ctx;
block_t *block = *pp_block;
if (!block)
block_t *block = pp_block ? *pp_block : NULL;
if (!pp_block || !block)
return NULL;
if (block->i_flags & (BLOCK_FLAG_CORRUPTED)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment