From 62eae3827be1b27d734662c8433440fe2afedae6 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 29 Sep 2019 06:55:42 +0200 Subject: [PATCH] ui/handler: Add function for packet processing --- source/ui/handler.cpp | 2 ++ source/ui/handler.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/ui/handler.cpp b/source/ui/handler.cpp index 67f8db2..c42aa11 100644 --- a/source/ui/handler.cpp +++ b/source/ui/handler.cpp @@ -46,3 +46,5 @@ std::string obsffmpeg::ui::handler::export_for_ffmpeg(obs_data_t* settings, cons { return std::string(); } + +void obsffmpeg::ui::handler::process_avpacket(AVPacket& packet, const AVCodec* codec, AVCodecContext* context) {} diff --git a/source/ui/handler.hpp b/source/ui/handler.hpp index e9cb508..c5bc0b5 100644 --- a/source/ui/handler.hpp +++ b/source/ui/handler.hpp @@ -60,6 +60,8 @@ namespace obsffmpeg { virtual std::string export_for_ffmpeg(obs_data_t* settings, const AVCodec* codec, AVCodecContext* context); + + virtual void process_avpacket(AVPacket& packet, const AVCodec* codec, AVCodecContext* context); }; } // namespace ui } // namespace obsffmpeg