Skip to content

Commit

Permalink
Fixes OSS build
Browse files Browse the repository at this point in the history
Summary: - Fixes OSS build broken in this stack D67775633 (end diff)

Reviewed By: afrind

Differential Revision: D67971641

fbshipit-source-id: fec7b32bca1f9c4a02ce90cd5bb62b5b4bb26c56
  • Loading branch information
jordicenzano authored and facebook-github-bot committed Jan 9, 2025
1 parent f2082ce commit 2be8e03
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 24 deletions.
2 changes: 2 additions & 0 deletions moxygen/flv_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

# flvparser
add_library(flvparser
FlvCommon.cpp
FlvReader.cpp
FlvWriter.cpp
FlvSequentialReader.cpp
)

Expand Down
1 change: 1 addition & 0 deletions moxygen/flv_parser/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ moxygen_add_test(TARGET FlvParserTests
FlvSequentialReaderTest.cpp
DEPENDS
flvparser
moqmi
Folly::folly
)
24 changes: 24 additions & 0 deletions moxygen/moq_mi/MoQMi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,28 @@ void MoQMi::writeVarint(
}
}

std::ostream& operator<<(
std::ostream& os,
MoQMi::VideoH264AVCCWCPData const& v) {
auto metadataSize =
v.metadata != nullptr ? v.metadata->computeChainDataLength() : 0;
auto dataSize = v.data != nullptr ? v.data->computeChainDataLength() : 0;
os << "VideoH264. id: " << v.seqId << ", pts: " << v.pts << ", dts: " << v.dts
<< ", timescale: " << v.timescale << ", duration: " << v.duration
<< ", wallclock: " << v.wallclock << ", metadata length: " << metadataSize
<< ", data length: " << dataSize;
return os;
}

std::ostream& operator<<(
std::ostream& os,
MoQMi::AudioAACMP4LCWCPData const& a) {
auto dataSize = a.data != nullptr ? a.data->computeChainDataLength() : 0;
os << "AudioAAC. id: " << a.seqId << ", pts: " << a.pts
<< ", sampleFreq: " << a.sampleFreq << ", numChannels: " << a.numChannels
<< ", timescale: " << a.timescale << ", duration: " << a.duration
<< ", wallclock: " << a.wallclock << ", data length: " << dataSize;
return os;
}

} // namespace moxygen
24 changes: 0 additions & 24 deletions moxygen/moq_mi/MoQMi.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,28 +185,4 @@ class MoQMi {
bool& error) noexcept;
};

std::ostream& operator<<(
std::ostream& os,
MoQMi::VideoH264AVCCWCPData const& v) {
auto metadataSize =
v.metadata != nullptr ? v.metadata->computeChainDataLength() : 0;
auto dataSize = v.data != nullptr ? v.data->computeChainDataLength() : 0;
os << "VideoH264. id: " << v.seqId << ", pts: " << v.pts << ", dts: " << v.dts
<< ", timescale: " << v.timescale << ", duration: " << v.duration
<< ", wallclock: " << v.wallclock << ", metadata length: " << metadataSize
<< ", data length: " << dataSize;
return os;
}

std::ostream& operator<<(
std::ostream& os,
MoQMi::AudioAACMP4LCWCPData const& a) {
auto dataSize = a.data != nullptr ? a.data->computeChainDataLength() : 0;
os << "AudioAAC. id: " << a.seqId << ", pts: " << a.pts
<< ", sampleFreq: " << a.sampleFreq << ", numChannels: " << a.numChannels
<< ", timescale: " << a.timescale << ", duration: " << a.duration
<< ", wallclock: " << a.wallclock << ", data length: " << dataSize;
return os;
}

} // namespace moxygen
2 changes: 2 additions & 0 deletions moxygen/moq_mi/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ moxygen_add_test(TARGET MoQMiTests
MoQMiTest.cpp
DEPENDS
moqmi
flvparser
proxygen::proxygen
Folly::folly
)

0 comments on commit 2be8e03

Please sign in to comment.