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;
switch (dec->fmt_in.i_codec)
{
+#ifdef ENABLE_VP8_DECODER
case VLC_CODEC_VP8:
iface = &vpx_codec_vp8_dx_algo;
vp_version = 8;
break;
+#endif
#ifdef ENABLE_VP9_DECODER
case VLC_CODEC_VP9:
iface = &vpx_codec_vp9_dx_algo;