Andreas Rheinhardt
52523b6963
avformat/matroskaenc: Improve BlockAdditions
...
8ffcc826 added support for muxing BlockAdditions with BlockAddID equal
to one. The restriction to BlockAddID == 1 probably resulted from
a limitation to what was needed; yet over time this led to three
occurences of "(side_data_size && additional_id == 1)". This commit
changes this by setting side_data_size to 0 if additional_id != 1.
It also stops hardcoding 1 for the value of BlockAddID to write;
but it still upholds the requirement that it is 1. See below.
Despite BlockAddId actually having a default value of 1, it is still
written, because until very recently (namely dbc50f8a) our demuxer
used a wrong default value of 0.
Furthermore, use put_ebml_binary() to write the BlockAdditional element.
(The Matroska specifications have evolved and now the BlockAddID 1 is
reserved for the codec (as described in the codec's codec mapping),
BlockMore elements with BlockAddID > 1 are now of a more
codec-independent nature and require a BlockAdditionalMapping in the
track's TrackEntry. Given that this muxer does not support writing said
BlockAdditionalMapping yet (actually, none have been defined yet), we
have to uphold the requirement that BlockAddID == 1.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-04-03 09:04:22 +02:00
..
2020-02-15 18:41:36 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-17 16:08:13 +01:00
2020-03-09 13:41:12 +01:00
2020-04-03 00:58:07 +02:00
2020-02-10 22:41:38 +01:00
2020-02-21 14:47:29 +01:00
2020-01-26 10:24:00 +01:00
2020-03-21 20:55:27 +01:00
2020-04-01 05:34:11 +02:00
2020-03-14 22:25:25 +01:00
2020-01-26 12:41:32 -03:00
2020-01-26 12:41:32 -03:00
2020-01-26 12:41:32 -03:00
2020-04-01 05:48:31 +02:00
2020-03-12 18:57:39 +01:00
2020-03-14 22:07:27 +01:00
2020-03-30 05:50:49 +02:00
2020-03-17 22:46:36 +01:00
2020-01-30 17:10:12 +08:00
2020-03-30 05:50:49 +02:00
2020-02-10 22:41:38 +01:00
2020-03-22 13:00:19 +01:00
2020-03-20 14:24:34 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-29 08:45:16 +08:00
2020-02-26 11:05:45 -03:00
2020-03-17 16:05:49 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-24 23:02:30 +01:00
2020-01-18 18:35:57 +01:00
2020-03-10 15:10:06 +00:00
2020-01-26 17:24:41 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-28 04:17:20 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-15 18:41:36 +01:00
2020-03-17 16:04:42 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-14 22:25:25 +01:00
2020-03-17 16:08:13 +01:00
2020-01-26 12:41:31 -03:00
2020-01-26 12:41:32 -03:00
2020-03-24 21:22:15 +01:00
2020-03-12 14:00:45 +08:00
2020-04-02 21:22:52 +02:00
2020-02-15 18:41:36 +01:00
2020-02-15 18:41:36 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-28 04:17:20 +01:00
2020-01-19 22:17:04 +01:00
2020-02-15 10:55:33 +01:00
2020-02-10 22:41:38 +01:00
2020-02-28 19:40:05 +01:00
2020-02-06 17:26:22 +01:00
2020-03-09 22:07:17 +01:00
2020-02-10 22:41:38 +01:00
2020-02-24 00:13:38 +01:00
2020-03-09 22:07:18 +01:00
2020-02-10 22:41:38 +01:00
2020-03-17 16:08:13 +01:00
2020-03-25 22:24:05 +01:00
2020-04-02 07:12:01 +02:00
2020-04-03 09:04:22 +02:00
2020-04-01 22:21:26 +02:00
2020-04-01 09:44:18 -06:00
2020-04-01 09:44:18 -06:00
2020-02-28 19:40:05 +01:00
2020-02-10 22:41:38 +01:00
2020-03-26 21:04:17 +01:00
2020-02-27 18:26:25 +01:00
2020-02-11 00:15:19 +01:00
2020-04-01 04:31:39 +02:00
2020-02-25 19:57:16 +01:00
2020-03-14 22:25:25 +01:00
2020-03-14 22:25:25 +01:00
2020-03-30 07:27:02 +02:00
2020-03-14 22:25:25 +01:00
2020-02-10 22:41:38 +01:00
2020-03-26 20:06:15 +01:00
2020-03-14 22:07:27 +01:00
2020-02-10 22:41:38 +01:00
2020-04-01 22:21:26 +02:00
2020-03-17 22:46:36 +01:00
2020-03-09 22:07:17 +01:00
2020-02-10 22:41:38 +01:00
2020-03-12 18:57:39 +01:00
2020-02-16 12:54:57 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-27 10:39:15 -07:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-02-04 20:39:46 +01:00
2020-02-10 22:41:38 +01:00
2020-02-25 19:57:16 +01:00
2020-03-17 22:46:36 +01:00
2020-02-10 22:41:38 +01:00
2020-02-10 22:41:38 +01:00
2020-03-14 22:07:27 +01:00
2020-02-10 22:41:38 +01:00
2020-02-20 23:04:50 +02:00
2020-03-22 13:00:19 +01:00
2020-03-21 18:46:36 +01:00
2020-02-10 22:41:38 +01:00
2020-03-28 04:17:20 +01:00
2020-02-10 22:41:38 +01:00
2020-03-14 15:38:34 +01:00
2020-03-08 19:08:04 +01:00
2020-02-15 18:41:36 +01:00
2020-02-15 18:41:36 +01:00
2020-03-20 09:16:05 +01:00
2020-03-17 16:08:13 +01:00
2020-02-20 14:41:26 +01:00
2020-03-12 18:47:39 +01:00
2020-02-10 22:41:38 +01:00
2020-03-26 02:39:14 +01:00
2020-03-26 21:33:51 +01:00
2020-02-19 22:37:30 +01:00
2020-04-02 07:17:34 +02:00
2020-03-19 10:58:07 +01:00
2020-03-26 20:51:34 +01:00
2020-03-19 17:34:31 +01:00