diff --git a/source/encoders/encoder-ffmpeg.cpp b/source/encoders/encoder-ffmpeg.cpp index eef6c96d..75794b82 100644 --- a/source/encoders/encoder-ffmpeg.cpp +++ b/source/encoders/encoder-ffmpeg.cpp @@ -270,8 +270,8 @@ bool ffmpeg_instance::update(obs_data_t* settings) DLOG_INFO("[%s] Video:", _codec->name); if (_hwinst) { - DLOG_INFO("[%s] Texture: %" PRId32 "x%" PRId32 " %s %s %s", _codec->name, _context->width, _context->height, - ::ffmpeg::tools::get_pixel_format_name(_context->sw_pix_fmt), + DLOG_INFO("[%s] Texture: %" PRId32 "x%" PRId32 " %s %s %s", _codec->name, _context->width, + _context->height, ::ffmpeg::tools::get_pixel_format_name(_context->sw_pix_fmt), ::ffmpeg::tools::get_color_space_name(_context->colorspace), av_color_range_name(_context->color_range)); } else { @@ -361,7 +361,8 @@ bool ffmpeg_instance::encode_video(struct encoder_frame* frame, struct encoder_p _scaler.convert(reinterpret_cast(frame->data), reinterpret_cast(frame->linesize), 0, _context->height, vframe->data, vframe->linesize); if (res <= 0) { - DLOG_ERROR("Failed to convert frame: %s (%" PRId32 ").", ::ffmpeg::tools::get_error_description(res), res); + DLOG_ERROR("Failed to convert frame: %s (%" PRId32 ").", ::ffmpeg::tools::get_error_description(res), + res); return false; } } @@ -701,7 +702,8 @@ bool ffmpeg_instance::encode_avframe(std::shared_ptr frame, encoder_pac sent_frame = true; break; default: - DLOG_ERROR("Failed to encode frame: %s (%" PRId32 ").", ::ffmpeg::tools::get_error_description(res), res); + DLOG_ERROR("Failed to encode frame: %s (%" PRId32 ").", ::ffmpeg::tools::get_error_description(res), + res); return false; } } @@ -726,7 +728,8 @@ bool ffmpeg_instance::encode_avframe(std::shared_ptr frame, encoder_pac } break; default: - DLOG_ERROR("Failed to receive packet: %s (%" PRId32 ").", ::ffmpeg::tools::get_error_description(res), res); + DLOG_ERROR("Failed to receive packet: %s (%" PRId32 ").", ::ffmpeg::tools::get_error_description(res), + res); return false; } } diff --git a/source/encoders/handlers/debug_handler.cpp b/source/encoders/handlers/debug_handler.cpp index 1d871d3d..42a4b5a9 100644 --- a/source/encoders/handlers/debug_handler.cpp +++ b/source/encoders/handlers/debug_handler.cpp @@ -118,8 +118,8 @@ void debug_handler::get_properties(obs_properties_t*, const AVCodec* codec, AVCo } else { auto unit_type = unit_types.find(opt->unit); if (unit_type == unit_types.end()) { - DLOG_INFO(" [%s] Flag '%s' and help text '%s' with value '%" PRId64 "'.", opt->unit, opt->name, opt->help, - opt->default_val.i64); + DLOG_INFO(" [%s] Flag '%s' and help text '%s' with value '%" PRId64 "'.", opt->unit, opt->name, + opt->help, opt->default_val.i64); } else { std::string out; switch (unit_type->second) { diff --git a/source/filters/filter-nv-face-tracking.cpp b/source/filters/filter-nv-face-tracking.cpp index ffe17962..93fe243f 100644 --- a/source/filters/filter-nv-face-tracking.cpp +++ b/source/filters/filter-nv-face-tracking.cpp @@ -232,8 +232,8 @@ void face_tracking_instance::async_track(std::shared_ptr ptr) auto prof = _profile_capture_realloc->track(); gs::debug_marker marker{gs::debug_color_allocate, "Reallocate GPU Buffer"}; #endif - _ar_texture = - std::make_shared(_size.first, _size.second, GS_RGBA, uint32_t(1), nullptr, gs::texture::flags::None); + _ar_texture = std::make_shared(_size.first, _size.second, GS_RGBA, uint32_t(1), nullptr, + gs::texture::flags::None); _ar_texture_cuda_fresh = false; } diff --git a/source/gfx/shader/gfx-shader-param-basic.cpp b/source/gfx/shader/gfx-shader-param-basic.cpp index 75147994..28564b33 100644 --- a/source/gfx/shader/gfx-shader-param-basic.cpp +++ b/source/gfx/shader/gfx-shader-param-basic.cpp @@ -98,7 +98,8 @@ gfx::shader::basic_parameter::basic_parameter(gs::effect_parameter param, std::s for (std::size_t idx = 0; idx < get_size(); idx++) { snprintf(string_buffer, sizeof(string_buffer), "[%" PRId32 "]", static_cast(idx)); _names[idx] = std::string(string_buffer, string_buffer + strnlen(string_buffer, sizeof(string_buffer))); - snprintf(string_buffer, sizeof(string_buffer), "%s[%" PRId32 "]", get_key().data(), static_cast(idx)); + snprintf(string_buffer, sizeof(string_buffer), "%s[%" PRId32 "]", get_key().data(), + static_cast(idx)); _keys[idx] = std::string(string_buffer, string_buffer + strnlen(string_buffer, sizeof(string_buffer))); } } diff --git a/source/transitions/transition-shader.cpp b/source/transitions/transition-shader.cpp index 2c80f4e4..918608df 100644 --- a/source/transitions/transition-shader.cpp +++ b/source/transitions/transition-shader.cpp @@ -26,8 +26,7 @@ using namespace streamfx::transition::shader; -shader_instance::shader_instance(obs_data_t* data, obs_source_t* self) - : obs::source_instance(data, self) +shader_instance::shader_instance(obs_data_t* data, obs_source_t* self) : obs::source_instance(data, self) { _fx = std::make_shared(self, gfx::shader::shader_mode::Transition);