MCPcopy Create free account
hub / github.com/Tencent/libpag / CovertToMP4

Method CovertToMP4

src/codec/mp4/MP4BoxHelper.cpp:173–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173std::unique_ptr<ByteData> MP4BoxHelper::CovertToMP4(const VideoSequence* videoSequence) {
174 if (!videoSequence->MP4Header) {
175 return MakeMP4Data(videoSequence, true);
176 }
177 return ConcatMP4(videoSequence);
178}
179
180void MP4BoxHelper::WriteMP4Header(VideoSequence* videoSequence) {
181 videoSequence->MP4Header = MakeMP4Data(videoSequence, false).release();

Callers

nothing calls this directly

Calls 2

MakeMP4DataFunction · 0.85
ConcatMP4Function · 0.85

Tested by

no test coverage detected