Commit 2b57b9ef authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Ilkka Ollakka

codec/vpx.c: do not leak memory.

Signed-off-by: Ilkka Ollakka's avatarIlkka Ollakka <>
parent 5e36cb2c
......@@ -72,8 +72,10 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
if (!block)
return NULL;
if (block->i_flags & (BLOCK_FLAG_CORRUPTED))
if (block->i_flags & (BLOCK_FLAG_CORRUPTED)) {
return NULL;
/* Associate packet PTS with decoded frame */
mtime_t *pkt_pts = malloc(sizeof(*pkt_pts));
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