]> git.sesse.net Git - nageru/blobdiff - httpd.cpp
Move some muxing parameters out into defs.h.
[nageru] / httpd.cpp
index 281bbcf0b05e7e1ebed86403016ff57f7d0eab61..a841cd0bb7311526ce0177d5c40f199cdbc47e03 100644 (file)
--- a/httpd.cpp
+++ b/httpd.cpp
@@ -69,7 +69,7 @@ int HTTPD::answer_to_connection(MHD_Connection *connection,
                                size_t *upload_data_size, void **con_cls)
 {
        printf("url %s\n", url);
-       AVOutputFormat *oformat = av_guess_format("mpegts", nullptr, nullptr);
+       AVOutputFormat *oformat = av_guess_format(STREAM_MUX_NAME, nullptr, nullptr);
        assert(oformat != nullptr);
        HTTPD::Stream *stream = new HTTPD::Stream(oformat, width, height);
        streams.push_back(stream);