]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Remove limit on the number of tracks
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 15 Apr 2020 02:49:46 +0000 (04:49 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 20 Apr 2020 19:30:46 +0000 (21:30 +0200)
commit13c12cd4702e621c7363be8f22a8b55c22a31a02
tree82acccfa1ac485a39e06ed96e35bcfa86f068051
parent112afaccdfa56e446527f0303f3e1277bc34b500
avformat/matroskaenc: Remove limit on the number of tracks

The Matroska file format has practically no limit on the number of
tracks (the current limit is 2^56 - 1); yet because they are encoded in
a variable length format in (Simple)Blocks this muxer has simply imposed
a limit on the number of tracks in order to ensure that they can always
be written on one byte in order to simplify the muxing process.

This commit removes said limit.

Also, zero is an invalid TrackNumber, so disallow this value in the
dash_track_number option.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskaenc.c