Allow injecting more than one type of header data into video

This commit is contained in:
loki
2021-06-18 17:27:56 +02:00
parent ac862f9157
commit 63d15333f2
5 changed files with 121 additions and 81 deletions
+9 -3
View File
@@ -42,10 +42,16 @@ struct packet_raw_t : public AVPacket {
av_packet_unref(this);
}
struct {
struct replace_t {
std::string_view old;
std::string_view replacement;
} sps;
std::string_view _new;
KITTY_DEFAULT_CONSTR(replace_t)
replace_t(std::string_view old, std::string_view _new) noexcept : old { std::move(old) }, _new { std::move(_new) } {}
};
std::vector<replace_t> *replacements;
void *channel_data;
};