]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp4: Hide tracks array.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 19 Aug 2021 13:52:13 +0000 (15:52 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
commit7376b51bb47f834f46a06756d3f004efac6c9bb0
treee3deed1c3d9c4e407491f65f46f01a67c1db5e32
parent623699153a7718e29d6571a9fea1b96244813ef9
mp4: Hide tracks array.

All functions of mp4.c operate on the first audio track. This
patch makes this fact implicit which allows us to remove the public
mp4_get_total_tracks() and mp4_is_audio_track(). Moreover, the track
parameter can be removed from all public functions.

If no audio track was found in the mp4 file, we now return an error
from two public open functions of mp4.c. Otherwise, we maintain a
pointer to the first audio track within the mp4 structure and use
that to identify the track rather than letting the API users pass
the track number.
aac_afh.c
mp4.c
mp4.h