Browse Source

vpx: encoder: don't leak image on encoding failure

pull/65/head
Tristan Matthews 8 years ago
parent
commit
b492a7ec69
  1. 1
      modules/codec/vpx.c

1
modules/codec/vpx.c

@ -478,6 +478,7 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
flags, quality);
if (res != VPX_CODEC_OK) {
VPX_ERR(p_enc, ctx, "Failed to encode frame");
vpx_img_free(&img);
return NULL;
}

Loading…
Cancel
Save