From f5fe4d0acf3c46d3441c8772733780978b347207 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 6 Aug 2022 08:54:15 +0100 Subject: [PATCH] obs-ffmpeg: Fix USAGE typo Replace TRANSCONDING with TRANSCODING, because it is likely that the typo compatibility will be removed in a future AMF header update. This should also minimize confusion and improve search. --- plugins/obs-ffmpeg/texture-amf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/obs-ffmpeg/texture-amf.cpp b/plugins/obs-ffmpeg/texture-amf.cpp index 6f3a409a2..a9d892192 100644 --- a/plugins/obs-ffmpeg/texture-amf.cpp +++ b/plugins/obs-ffmpeg/texture-amf.cpp @@ -1176,7 +1176,7 @@ static void amf_avc_create_internal(amf_base *enc, obs_data_t *settings) } set_avc_property(enc, FRAMESIZE, AMFConstructSize(enc->cx, enc->cy)); - set_avc_property(enc, USAGE, AMF_VIDEO_ENCODER_USAGE_TRANSCONDING); + set_avc_property(enc, USAGE, AMF_VIDEO_ENCODER_USAGE_TRANSCODING); set_avc_property(enc, QUALITY_PRESET, get_avc_preset(enc, settings)); set_avc_property(enc, PROFILE, get_avc_profile(settings)); set_avc_property(enc, LOWLATENCY_MODE, false); @@ -1468,7 +1468,7 @@ static void amf_hevc_create_internal(amf_base *enc, obs_data_t *settings) const bool is_hdr = pq || hlg; set_hevc_property(enc, FRAMESIZE, AMFConstructSize(enc->cx, enc->cy)); - set_hevc_property(enc, USAGE, AMF_VIDEO_ENCODER_USAGE_TRANSCONDING); + set_hevc_property(enc, USAGE, AMF_VIDEO_ENCODER_USAGE_TRANSCODING); set_hevc_property(enc, QUALITY_PRESET, get_hevc_preset(enc, settings)); set_hevc_property(enc, COLOR_BIT_DEPTH, is10bit ? AMF_COLOR_BIT_DEPTH_10