From 7710a7d8a7823f3f9d5a76df0975070c1f287414 Mon Sep 17 00:00:00 2001 From: Balder Date: Mon, 29 Feb 2016 11:35:17 +0100 Subject: [PATCH] BalderDash fixes (H264 mp4 codecs weirdness//FF) --- src/output/output_dash_mp4.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/output/output_dash_mp4.cpp b/src/output/output_dash_mp4.cpp index 5b343935..724d3213 100644 --- a/src/output/output_dash_mp4.cpp +++ b/src/output/output_dash_mp4.cpp @@ -349,9 +349,9 @@ namespace Mist { std::stringstream r; MP4::AVCC avccBox; avccBox.setPayload(initData); - r << std::hex << std::setw(2) << std::setfill('0') << (int)avccBox.getSPS()[0] << std::dec; - r << std::hex << std::setw(2) << std::setfill('0') << (int)avccBox.getSPS()[1] << std::dec; - r << std::hex << std::setw(2) << std::setfill('0') << (int)avccBox.getSPS()[2] << std::dec; + r << std::hex << std::setw(2) << std::setfill('0') << (int)initData[1] << std::dec; + r << std::hex << std::setw(2) << std::setfill('0') << (int)initData[2] << std::dec; + r << std::hex << std::setw(2) << std::setfill('0') << (int)initData[3] << std::dec; return r.str(); } @@ -545,7 +545,7 @@ namespace Mist { std::string url = H.url; if (url.find(".mpd") != std::string::npos){ H.Clean(); - H.SetHeader("Content-Type", "application/xml"); + H.SetHeader("Content-Type", "application/dash+xml"); H.SetHeader("Cache-Control", "no-cache"); H.setCORSHeaders(); if(method == "OPTIONS" || method == "HEAD"){