X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpd.h;h=e6f12d99698feae9d5cec1bd0d4c55d4fdbf2a02;hb=29dbd73d394a83ffef452072d57813325efad286;hp=695c7082cd36436b8bbf345f48fd53681f924a33;hpb=a98163f8ea5e47829bdcd9286e92fb37bed0843e;p=nageru diff --git a/httpd.h b/httpd.h index 695c708..e6f12d9 100644 --- a/httpd.h +++ b/httpd.h @@ -67,7 +67,7 @@ private: CODEC_NV12, // Uncompressed 4:2:0. }; - Mux(AVFormatContext *avctx, int width, int height, Codec video_codec); // Takes ownership of avctx. + Mux(AVFormatContext *avctx, int width, int height, Codec video_codec, int time_base); // Takes ownership of avctx. ~Mux(); void add_packet(const AVPacket &pkt, int64_t pts, int64_t dts); @@ -79,7 +79,7 @@ private: class Stream { public: - Stream(AVOutputFormat *oformat, int width, int height); + Stream(AVOutputFormat *oformat, int width, int height, int time_base); 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);