From 55c7e77d2c025ac91c6298b8cb06fded65031a11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 8 May 2017 15:05:45 +0000 Subject: [PATCH] vpx: fix build against older libvpx versions Such as 1.3.0 as on raspbian. --- ext/vpx/gstvp9dec.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ext/vpx/gstvp9dec.c b/ext/vpx/gstvp9dec.c index 066952e..69bb0fb 100644 --- a/ext/vpx/gstvp9dec.c +++ b/ext/vpx/gstvp9dec.c @@ -147,38 +147,46 @@ gst_vp9_dec_get_valid_format (GstVPXDec * dec, vpx_image_t * img, case VPX_IMG_FMT_I444: *fmt = GST_VIDEO_FORMAT_Y444; return TRUE; - +#ifdef VPX_IMG_FMT_I440 case VPX_IMG_FMT_I440: /* Planar, half height, full width U/V */ GST_FIXME_OBJECT (dec, "Please add a 4:4:0 planar frame format"); GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, (NULL), ("Unsupported frame format - 4:4:0 planar")); return FALSE; +#endif +#ifdef VPX_IMG_FMT_I42016 case VPX_IMG_FMT_I42016: /* VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGHBITDEPTH */ GST_FIXME_OBJECT (dec, "Please add 16-bit I420 format"); GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, (NULL), ("Unsupported frame format - 16-bit 4:2:0 planar")); return FALSE; +#endif +#ifdef VPX_IMG_FMT_I42216 case VPX_IMG_FMT_I42216: /* VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGHBITDEPTH */ GST_FIXME_OBJECT (dec, "Please add 16-bit Y42B format"); GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, (NULL), ("Unsupported frame format - 16-bit 4:2:2 planar")); return FALSE; +#endif +#ifdef VPX_IMG_FMT_I44416 case VPX_IMG_FMT_I44416: /* VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH */ GST_FIXME_OBJECT (dec, "Please add 16-bit Y444 format"); GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, (NULL), ("Unsupported frame format - 16-bit 4:4:4 planar")); return FALSE; +#endif +#ifdef VPX_IMG_FMT_I44016 case VPX_IMG_FMT_I44016: /* VPX_IMG_FMT_I440 | VPX_IMG_FMT_HIGHBITDEPTH */ GST_FIXME_OBJECT (dec, "Please add 16-bit 4:4:0 planar frame format"); GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, (NULL), ("Unsupported frame format - 16-bit 4:4:0 planar")); return FALSE; - +#endif default: return FALSE; } -- 2.7.4