From bbf40454ae121e8be72d017883bc6124b8c520f0 Mon Sep 17 00:00:00 2001 From: MaranBr Date: Wed, 23 Jul 2025 09:17:16 -0400 Subject: [PATCH] Add experimental support for MediaCodec on Android --- src/video_core/host1x/ffmpeg/ffmpeg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/host1x/ffmpeg/ffmpeg.cpp b/src/video_core/host1x/ffmpeg/ffmpeg.cpp index 6609752bdb..118c0d2eea 100644 --- a/src/video_core/host1x/ffmpeg/ffmpeg.cpp +++ b/src/video_core/host1x/ffmpeg/ffmpeg.cpp @@ -36,8 +36,9 @@ constexpr std::array PreferredGpuDecoders = { AV_HWDEVICE_TYPE_CUDA, AV_HWDEVICE_TYPE_VAAPI, AV_HWDEVICE_TYPE_VDPAU, +#elif defined(__ANDROID__) + AV_HWDEVICE_TYPE_MEDIACODEC #endif - AV_HWDEVICE_TYPE_VULKAN, }; AVPixelFormat GetGpuFormat(AVCodecContext* codec_context, const AVPixelFormat* pix_fmts) {