]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Ignore AttachedFiles for track limit
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 27 Nov 2019 04:00:04 +0000 (05:00 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 13 Apr 2020 06:51:21 +0000 (08:51 +0200)
commit629f08a8632bf622ea7521b6de63eb8f9502fd4a
tree81bd076a8b72a25dfd4b973ef5f887b36177bc2d
parentccadd00a4a720979c6d4cedb52713c2585dd5b03
avformat/matroskaenc: Ignore AttachedFiles for track limit

Attachments are streams in FFmpeg, but they are not tracks in Matroska.
Yet they were counted when checking a limit for the number of tracks that
the Matroska muxer imposes. This is unnecessary and has been changed.

Also use unsigned variables for the variables denoting TrackNumbers as
negative TrackNumbers are impossible.

(The Matroska file format actually has practically no limit on the
number of tracks and this is purely what our muxer supports. But even if
this limit were removed/relaxed in the future, it still makes sense to
use small TrackNumbers as this patch does, because greater numbers need
more bytes to encode.)

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