X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mux.h;h=9614bffbb5ae6603d1ef0d50353ef61b27715679;hb=6ffaabac0a523617b686f40c154a25cb548cc561;hp=e6193e0a36c92ec0258f3680df597a37f15ce26f;hpb=ad1641ad3ab50ecd17af2e1c2d980f26e6adf0bb;p=nageru diff --git a/mux.h b/mux.h index e6193e0..9614bff 100644 --- a/mux.h +++ b/mux.h @@ -62,7 +62,7 @@ public: // will be added to. Mux(AVFormatContext *avctx, int width, int height, Codec video_codec, const std::string &video_extradata, const AVCodecParameters *audio_codecpar, int time_base, std::function write_callback, WriteStrategy write_strategy, const std::vector &metrics); ~Mux(); - void add_packet(const AVPacket &pkt, int64_t pts, int64_t dts, AVRational timebase = { 1, TIMEBASE }); + void add_packet(const AVPacket &pkt, int64_t pts, int64_t dts, AVRational timebase = { 1, TIMEBASE }, int stream_index_override = -1); // As long as the mux is plugged, it will not actually write anything to disk, // just queue the packets. Once it is unplugged, the packets are reordered by pts