Organize some things
All checks were successful
eden-license / license-header (pull_request) Successful in 50s

This commit is contained in:
MaranBr 2025-07-21 17:19:15 -04:00
parent 91adee2f5b
commit 3b85b67944

View file

@ -122,7 +122,7 @@ bool Decoder::SupportsDecodingOnDevice(AVPixelFormat* out_pix_fmt, AVHWDeviceTyp
} }
if (config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX && config->device_type == type) { if (config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX && config->device_type == type) {
LOG_INFO(HW_GPU, "Using {} GPU Decoder", av_hwdevice_get_type_name(type)); LOG_INFO(HW_GPU, "Using {} GPU decoder", av_hwdevice_get_type_name(type));
*out_pix_fmt = config->pix_fmt; *out_pix_fmt = config->pix_fmt;
return true; return true;
} }
@ -226,7 +226,7 @@ bool DecoderContext::OpenContext(const Decoder& decoder) {
} }
if (!m_codec_context->hw_device_ctx) { if (!m_codec_context->hw_device_ctx) {
LOG_INFO(HW_GPU, "Using FFmpeg CPU Decoder"); LOG_INFO(HW_GPU, "Using FFmpeg CPU decoder");
} }
return true; return true;