Skip to content

Commit

Permalink
vpx: fix segfault on decoding (refs #16836)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatth committed Apr 19, 2016
1 parent 147fec5 commit f116ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/codec/vpx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f116ca5

Please sign in to comment.