Skip to content

Commit 8fca97c

Browse files
committed
onebinary: fix toUTF16 namespace conflict
1 parent aaa4713 commit 8fca97c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ onebinary_stuff += 'MistInTS'
228228
# onebinary_stuff += 'MistInTSRIST'
229229
# onebinary_stuff += 'MistInTSSRT'
230230
onebinary_stuff += 'MistOutAAC'
231-
# onebinary_stuff += 'MistOutCMAF'
231+
onebinary_stuff += 'MistOutCMAF'
232232
onebinary_stuff += 'MistOutDTSC'
233233
onebinary_stuff += 'MistOutEBML'
234234
onebinary_stuff += 'MistOutFLAC'

src/output/output_cmaf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ namespace Mist{
723723
/* Smooth Streaming Manifest Generation */
724724
/****************************************/
725725

726-
std::string toUTF16(const std::string &original){
726+
std::string toUTF16CMAF(const std::string &original){
727727
std::string result;
728728
result.append("\377\376", 2);
729729
for (std::string::const_iterator it = original.begin(); it != original.end(); it++){
@@ -845,7 +845,7 @@ namespace Mist{
845845
smoothAdaptation("video", vTracks, r);
846846
r << "</SmoothStreamingMedia>\n";
847847

848-
return toUTF16(r.str());
848+
return toUTF16CMAF(r.str());
849849
}
850850

851851
/**********************************/

src/output/output_mp4.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ std::set<std::string> supportedAudio;
1616
std::set<std::string> supportedVideo;
1717

1818
namespace Mist{
19-
std::string toUTF16(const std::string &original){
19+
std::string toUTF16MP4(const std::string &original){
2020
std::stringstream result;
2121
result << (char)0xFF << (char)0xFE;
2222
for (std::string::const_iterator it = original.begin(); it != original.end(); it++){
@@ -90,7 +90,7 @@ namespace Mist{
9090

9191

9292
std::string OutMP4::protectionHeader(size_t idx){
93-
std::string tmp = toUTF16(M.getPlayReady(idx));
93+
std::string tmp = toUTF16MP4(M.getPlayReady(idx));
9494
tmp.erase(0, 2); // remove first 2 characters
9595
std::stringstream resGen;
9696
resGen << (char)((tmp.size() + 10) & 0xFF);

0 commit comments

Comments
 (0)