]> git.sesse.net Git - nageru/blobdiff - nageru/video_encoder.cpp
Merge branch 'mjpeg'
[nageru] / nageru / video_encoder.cpp
index 6749f3579f2fbe137819b6b976c872d580c3447a..bd93ae265369ec7076ee445c5bb38edb7f290298 100644 (file)
@@ -218,9 +218,9 @@ int VideoEncoder::write_packet2(uint8_t *buf, int buf_size, AVIODataMarkerType t
 
        if (type == AVIO_DATA_MARKER_HEADER) {
                stream_mux_header.append((char *)buf, buf_size);
-               httpd->set_header(stream_mux_header);
+               httpd->set_header(HTTPD::MAIN_STREAM, stream_mux_header);
        } else {
-               httpd->add_data((char *)buf, buf_size, type == AVIO_DATA_MARKER_SYNC_POINT, time, AVRational{ AV_TIME_BASE, 1 });
+               httpd->add_data(HTTPD::MAIN_STREAM, (char *)buf, buf_size, type == AVIO_DATA_MARKER_SYNC_POINT, time, AVRational{ AV_TIME_BASE, 1 });
        }
        return buf_size;
 }