From 2dbade5c8f1267f9a6bb2024cf5716d7783e9e96 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 13 Nov 2022 17:45:25 +0100 Subject: [PATCH] don't use av_vkfmt_from_pixfmt --- server/driver/ffmpeg/ffmpeg_helper.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/driver/ffmpeg/ffmpeg_helper.cpp b/server/driver/ffmpeg/ffmpeg_helper.cpp index 3242dde0..c4a9639d 100644 --- a/server/driver/ffmpeg/ffmpeg_helper.cpp +++ b/server/driver/ffmpeg/ffmpeg_helper.cpp @@ -19,6 +19,7 @@ #include "ffmpeg_helper.h" #include +#include extern "C" { @@ -65,12 +66,6 @@ vk_format_to_av_format(VkFormat vk_fmt) default: break; } - for (int f = AV_PIX_FMT_NONE; f < AV_PIX_FMT_NB; ++f) - { - auto current_fmt = av_vkfmt_from_pixfmt(AVPixelFormat(f)); - if (current_fmt and *current_fmt == (VkFormat)vk_fmt) - return AVPixelFormat(f); - } throw std::runtime_error("unsupported vulkan pixel format " + std::to_string((VkFormat)vk_fmt)); }