diff options
author | Jan Ekström <jeebjp@gmail.com> | 2016-02-26 00:46:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-25 21:35:59 +0100 |
commit | 5843392db5691403345074b24c9b3caae468d4c6 (patch) | |
tree | 04283e8aa78c181790c9ca058d7bc48cd342c01b /video/decode/vd_lavc.c | |
parent | 83b8d3f52c22f991227d824ddffd3b054d773d3a (diff) | |
download | mpv-5843392db5691403345074b24c9b3caae468d4c6.tar.bz2 mpv-5843392db5691403345074b24c9b3caae468d4c6.tar.xz |
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.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ -146,6 +147,9 @@ static const struct vd_lavc_hwdec *const hwdec_list[] = { &mp_vd_lavc_dxva2, &mp_vd_lavc_dxva2_copy, #endif +#if HAVE_ANDROID + &mp_vd_lavc_mediacodec, +#endif NULL }; |