Open GoogleCodeExporter opened 9 years ago
TrackType element is mandatory and not optional. So merely adding a check won't
suffice. Nevertheless, the bug is still there because we are defaulting to 0
which results in an invalid matroska file. According to the specification,
there is no default value for the TrackType element.
So ideally, Segment::AddTrack() should take track_type as one of its mandatory
arguments. But since we cannot change that (it's a public API) without breaking
compatibility, we need to outright reject muxing files if Segment::AddTrack()
is called but Track::set_type() is never called.
Original comment by vigne...@google.com
on 26 Apr 2014 at 10:02
Original issue reported on code.google.com by
vigne...@google.com
on 24 Apr 2014 at 10:32