code: Overriding color format doesn't work without a pointer or reference

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2023-05-16 01:11:58 +02:00 committed by Xaymar
parent fc8ebc7bf3
commit 376a3d6233
2 changed files with 2 additions and 2 deletions

View file

@ -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::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) {}

View file

@ -32,7 +32,7 @@ namespace streamfx::encoder::ffmpeg {
virtual void override_update(ffmpeg_factory* factory, ffmpeg_instance* instance, obs_data_t* settings); 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 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: public:
typedef std::map<std::string, handler*> handler_map_t; typedef std::map<std::string, handler*> handler_map_t;