X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=x264_encoder.h;h=34cf70242b75dbb60cf806386bfcca74700c0e06;hb=bd5b2de9a277b87c75d71d94bd8c5095ab14ecf7;hp=9b6f74d31eb017ee2cdc150ec50f3d524babb4bf;hpb=7c68022d2d22007e0a918f81db87278713659731;p=nageru diff --git a/x264_encoder.h b/x264_encoder.h index 9b6f74d..34cf702 100644 --- a/x264_encoder.h +++ b/x264_encoder.h @@ -24,6 +24,7 @@ #include #include #include +#include extern "C" { #include @@ -45,7 +46,7 @@ public: ~X264Encoder(); // Must be called before first frame. Does not take ownership. - void set_mux(Mux *mux) { this->mux = mux; } + void add_mux(Mux *mux) { muxes.push_back(mux); } // is taken to be raw NV12 data of WIDTHxHEIGHT resolution. // Does not block. @@ -78,7 +79,7 @@ private: // pool. std::unique_ptr frame_pool; - Mux *mux = nullptr; + std::vector muxes; bool wants_global_headers; std::string global_headers;