FFmpeg/libavcodec
Andreas Rheinhardt 36fcdc3fbe av1/h264_metadata, filter_units: Count down when deleting units
When testing whether a particular unit should be kept or discarded, it
is best to start at the very last unit of a fragment and count down,
because that way a unit that will eventually be deleted won't be
memmoved during earlier deletions; and frag/au->nb_units need only be
evaluated once in this case and the counter is automatically correct
when a unit got deleted.

It also works for double loops, i.e. when looping over all SEI messages
in all SEI units of an access unit.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-07-07 22:17:07 +01:00
..
2019-06-26 21:29:35 +02:00
2019-04-19 14:01:04 +02:00
2019-06-12 20:06:20 +10:00
2018-10-15 01:19:45 +02:00
2019-06-12 20:06:20 +10:00
2019-06-26 21:25:10 +02:00
2019-07-07 11:33:19 +02:00
2019-06-12 20:06:20 +10:00
2019-04-21 19:43:14 +02:00
2019-05-06 23:58:34 +02:00
2019-06-30 14:27:04 +02:00
2018-12-23 15:30:13 +01:00
2018-12-10 11:19:36 +01:00
2018-12-20 18:40:41 +08:00
2019-01-16 01:29:18 +01:00
2019-06-29 19:22:19 +02:00
2019-07-01 13:24:57 +08:00
2019-04-27 12:33:08 +02:00
2019-03-31 23:35:00 +02:00
2018-12-23 15:30:13 +01:00
2018-12-01 19:41:48 +01:00
2019-06-25 13:30:09 +02:00
2019-01-12 17:16:47 +01:00
2019-06-29 19:22:19 +02:00
2019-05-07 11:00:19 +08:00
2019-04-03 23:00:15 +08:00
2018-12-03 23:34:05 +01:00
2018-11-18 22:59:29 +01:00
2019-06-26 21:26:04 +02:00
2018-12-31 02:37:08 +01:00
2019-06-12 20:06:20 +10:00
2019-06-12 20:06:20 +10:00
2019-05-02 15:36:16 +02:00
2019-05-02 15:36:16 +02:00