From aa3a1c2b697b22f5ed9a96f86441fd6f980a7f34 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 2 Jun 2018 21:20:49 +0200 Subject: [PATCH] Kaeru is not experimental anymore. --- kaeru.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kaeru.cpp b/kaeru.cpp index 11fea00..1bfd2e6 100644 --- a/kaeru.cpp +++ b/kaeru.cpp @@ -1,5 +1,4 @@ // Kaeru (換える), a simple transcoder intended for use with Nageru. -// This is experimental code, not yet supported. #include "audio_encoder.h" #include "basic_stats.h" @@ -48,9 +47,9 @@ int write_packet(void *opaque, uint8_t *buf, int buf_size, AVIODataMarkerType ty 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; } -- 2.39.2