Commit 4148fb1d authored by Tristan Matthews's avatar Tristan Matthews Committed by Jean-Baptiste Kempf

vpx: fix leak

(cherry picked from commit 3682cdd28fed93c43d36116ae443fb50224d27cf)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1987ccd4
......@@ -103,8 +103,10 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
const void *iter = NULL;
struct vpx_image *img = vpx_codec_get_frame(ctx, &iter);
if (!img)
if (!img) {
free(pkt_pts);
return NULL;
}
/* fetches back the PTS */
pkt_pts = img->user_priv;
......
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