diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-15 21:17:25 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-19 02:31:49 +0100 |
commit | e1e6a5c8a515afa488faee3200666ce0f14ea5eb (patch) | |
tree | 7a7b0693dd393f27f490e254ecdc7fac839d763d /doc/APIchanges | |
parent | 578539564a3d3e17dc629d73688797c308c08c9e (diff) | |
download | ffmpeg-e1e6a5c8a515afa488faee3200666ce0f14ea5eb.tar.gz |
avformat/matroskaenc: Check chapter ids for duplicates
Up until now, there has been no check that each chapter has a unique id;
there was only a check for whether a chapter id is zero (this happens
often when the chapters originated from a format that lacks the concept
of chapter id and simply counts from zero) which is invalid in Matroska.
In this case the chapter ids are offset by 1 to make them nonnegative.
Yet offsetting won't fix duplicate ids, therefore this is changed to
simply create new chapter uids when the input chapter uids don't conform
to the requirements of Matroska (in which case it can be presumed that
they did not originate from Matroska, so that we don't need to bother
to preserve them).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'doc/APIchanges')
0 files changed, 0 insertions, 0 deletions