From 5843392db5691403345074b24c9b3caae468d4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Fri, 26 Feb 2016 00:46:15 +0200 Subject: Add a mediacodec decoder hwdec wrapper Does the same thing as the rpi one - makes fallback possible by pretending that h264_mediacodec is a hwdec. --- video/decode/vd_lavc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 167c1e55f2..1cb5bc9897 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -127,6 +127,7 @@ extern const struct vd_lavc_hwdec mp_vd_lavc_vaapi_copy; extern const struct vd_lavc_hwdec mp_vd_lavc_dxva2; extern const struct vd_lavc_hwdec mp_vd_lavc_dxva2_copy; extern const struct vd_lavc_hwdec mp_vd_lavc_rpi; +extern const struct vd_lavc_hwdec mp_vd_lavc_mediacodec; static const struct vd_lavc_hwdec *const hwdec_list[] = { #if HAVE_RPI @@ -145,6 +146,9 @@ static const struct vd_lavc_hwdec *const hwdec_list[] = { #if HAVE_DXVA2_HWACCEL &mp_vd_lavc_dxva2, &mp_vd_lavc_dxva2_copy, +#endif +#if HAVE_ANDROID + &mp_vd_lavc_mediacodec, #endif NULL }; -- cgit v1.2.3