From 24a466c27952f1780b02c073f9af8ef4d4c53663 Mon Sep 17 00:00:00 2001 From: MaranBr Date: Sat, 19 Jul 2025 21:40:54 -0400 Subject: [PATCH] Fix build --- src/video_core/host1x/ffmpeg/ffmpeg.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video_core/host1x/ffmpeg/ffmpeg.cpp b/src/video_core/host1x/ffmpeg/ffmpeg.cpp index b35c6c8f86..b3b73ca248 100644 --- a/src/video_core/host1x/ffmpeg/ffmpeg.cpp +++ b/src/video_core/host1x/ffmpeg/ffmpeg.cpp @@ -113,8 +113,7 @@ Decoder::Decoder(Tegra::Host1x::NvdecCommon::VideoCodec codec) { } bool Decoder::SupportsDecodingOnDevice(AVPixelFormat* out_pix_fmt, AVHWDeviceType type) const { - AVCodec *decoder = avcodec_find_decoder(m_codec); - if (decoder) { + if (avcodec_find_decoder(m_codec->id)) { for (int i = 0;; i++) { const AVCodecHWConfig* config = avcodec_get_hw_config(m_codec, i); if (!config) {