X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpd.h;fp=httpd.h;h=11f15bd81fd9314433edf72e4da19d6e6e2bcb39;hb=95ad88db99ba896fb5bfcfd5c221f735a3e34b7e;hp=55a81c20e59ffa125ef59a28320e98aa0f34c494;hpb=e573a43daf94593900197293b56bbe728d40ade6;p=nageru diff --git a/httpd.h b/httpd.h index 55a81c2..11f15bd 100644 --- a/httpd.h +++ b/httpd.h @@ -28,11 +28,11 @@ extern "C" { #include "mux.h" -class HTTPD { +class HTTPD : public PacketDestination { public: HTTPD(int width, int height); void start(int port); - void add_packet(const AVPacket &pkt, int64_t pts, int64_t dts); + void add_packet(const AVPacket &pkt, int64_t pts, int64_t dts) override; private: static int answer_to_connection_thunk(void *cls, MHD_Connection *connection, @@ -54,7 +54,7 @@ private: class Stream { public: - Stream(AVOutputFormat *oformat, int width, int height, int time_base); + Stream(AVOutputFormat *oformat, int width, int height, int time_base, int bit_rate); static ssize_t reader_callback_thunk(void *cls, uint64_t pos, char *buf, size_t max); ssize_t reader_callback(uint64_t pos, char *buf, size_t max);