From 376a3d6233c8cb5b8e5a762ca0b523227ecf6a29 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Tue, 16 May 2023 01:11:58 +0200 Subject: [PATCH] code: Overriding color format doesn't work without a pointer or reference --- source/encoders/ffmpeg/handler.cpp | 2 +- source/encoders/ffmpeg/handler.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/encoders/ffmpeg/handler.cpp b/source/encoders/ffmpeg/handler.cpp index 272c22d4..297c95ce 100644 --- a/source/encoders/ffmpeg/handler.cpp +++ b/source/encoders/ffmpeg/handler.cpp @@ -64,4 +64,4 @@ void streamfx::encoder::ffmpeg::handler::override_update(ffmpeg_factory* factory void streamfx::encoder::ffmpeg::handler::log(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings) {} -void streamfx::encoder::ffmpeg::handler::override_colorformat(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings, AVPixelFormat target_format) {} +void streamfx::encoder::ffmpeg::handler::override_colorformat(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings, AVPixelFormat& target_format) {} diff --git a/source/encoders/ffmpeg/handler.hpp b/source/encoders/ffmpeg/handler.hpp index 79a3b39b..8bdf15a0 100644 --- a/source/encoders/ffmpeg/handler.hpp +++ b/source/encoders/ffmpeg/handler.hpp @@ -32,7 +32,7 @@ namespace streamfx::encoder::ffmpeg { virtual void override_update(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings); virtual void log(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings); - virtual void override_colorformat(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings, AVPixelFormat target_format); + virtual void override_colorformat(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings, AVPixelFormat& target_format); public: typedef std::map handler_map_t;