]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp4: Get rid of find_standard_meta().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 21 Aug 2021 11:30:02 +0000 (13:30 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
commit70941e3cfbdb5af190d76dc8aabb6d57b86638ae
tree74a2b7f11c0dc9295337a1919044cf4e81b01904
parent1177d16193c6308c4cdffb9f0ea69ce731c8b1c1
mp4: Get rid of find_standard_meta().

We don't need a dedicated function and data structure for that. Just
open-code the logic in create_ilst() and clean up this function a bit
while at it. Specifically:

* Call the loop variable "n" rather than "metaptr" since it is not
a pointer but an unsigned integer.

* Abort if we encounter a tag item name which is not one of the five
standard names. This can never occur because the origin of these
strings is the code in aac_afh.c which only passes standard names.

* Drop the integer return value, since the function can never
fail. Make it return the buffer pointer instead and get rid of the
corresponding parameter.
mp4.c