diff --git a/mkvmuxer.cpp b/mkvmuxer.cpp index 28d8969..8c45d5f 100644 --- a/mkvmuxer.cpp +++ b/mkvmuxer.cpp @@ -1564,10 +1564,6 @@ bool Segment::Finalize() { return true; } -uint64 Segment::AddVideoTrack(int32 width, int32 height) { - return AddVideoTrack(width, height, 0); -} - uint64 Segment::AddVideoTrack(int32 width, int32 height, int32 number) { VideoTrack* const vid_track = new (std::nothrow) VideoTrack(); // NOLINT if (!vid_track) @@ -1584,10 +1580,6 @@ uint64 Segment::AddVideoTrack(int32 width, int32 height, int32 number) { return vid_track->number(); } -uint64 Segment::AddAudioTrack(int32 sample_rate, int32 channels) { - return AddAudioTrack(sample_rate, channels, 0); -} - uint64 Segment::AddAudioTrack(int32 sample_rate, int32 channels, int32 number) { diff --git a/mkvmuxer.hpp b/mkvmuxer.hpp index e3fb66a..5e26b3d 100644 --- a/mkvmuxer.hpp +++ b/mkvmuxer.hpp @@ -667,10 +667,6 @@ class Segment { // |ptr_writer| is NULL. bool Init(IMkvWriter* ptr_writer); - // Adds an audio track to the segment. Returns the number of the track on - // success, 0 on error. - uint64 AddAudioTrack(int32 sample_rate, int32 channels); - // Adds an audio track to the segment. Returns the number of the track on // success, 0 on error. |number| is the number to use for the audio track. // |number| must be >= 0. If |number| == 0 then the muxer will decide on @@ -691,10 +687,6 @@ class Segment { uint64 timestamp_ns, bool is_key); - // Adds a video track to the segment. Returns the number of the track on - // success, 0 on error. - uint64 AddVideoTrack(int32 width, int32 height); - // Adds a video track to the segment. Returns the number of the track on // success, 0 on error. |number| is the number to use for the video track. // |number| must be >= 0. If |number| == 0 then the muxer will decide on