]> git.tuebingen.mpg.de Git - paraslash.git/commit - aac_afh.c
mp4: Simplify and speed up metadata editing.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 14 Aug 2021 15:53:59 +0000 (17:53 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
commita4d904cc19f2b088cc1c72d9f5ce1fcb998e2dcb
treeda84db23c9417e286453b1fff246f952f9edbb39
parentc45daa651ab777119735b82fa8ab2c240b025b99
mp4: Simplify and speed up metadata editing.

Currently the aac audio format handler first calls mp4_open_meta()
to get the metadata tags, then alters the in-memory structure of the
tags according to the command line options and passes this modified
structure to mp4_meta_update() to rewrite the tags. This latter call
parses the tags again, which is unnecessary overhead.

This patch changes the signature of mp4_meta_update() to accept an
mp4 structure instead of a callback structure and uses that instead
of re-opening the file.
aac_afh.c
mp4.c
mp4.h