]> git.sesse.net Git - nageru/blobdiff - shared/mux.h
Fix some addrinfo leaks in the error paths for outbound SRT, by means of RAII.
[nageru] / shared / mux.h
index 1b9fe93216aba26c364f628cd2ce325fa187c263..0fb913a37636fc746771896c763e2ea238ba4eb5 100644 (file)
@@ -50,7 +50,7 @@ class Mux {
 public:
        enum Codec {
                CODEC_H264,
-               CODEC_NV12,  // Uncompressed 4:2:0.
+               CODEC_AV1,
                CODEC_MJPEG
        };
        enum WriteStrategy {
@@ -96,6 +96,7 @@ private:
        // If write_strategy == WRITE_FOREGORUND, Must be called with <mu> held.
        void write_packet_or_die(const AVPacket &pkt, int64_t unscaled_pts);
        void thread_func();
+       void write_header();
 
        WriteStrategy write_strategy;