]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp4: Simplify chunk_of_sample().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 18 Aug 2021 21:15:07 +0000 (23:15 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
commit623699153a7718e29d6571a9fea1b96244813ef9
tree27f6a769302b3a41b95a27ae1ce9e0fcf11e1851
parent932d745bc8a3677e15845a58f1adb00c413cc839
mp4: Simplify chunk_of_sample().

This function was unnecessarily complex. The equivalent replacement
code is much shorter and easier to read. Besides reducing the number
of local variables, we drop the chunk_sample parameter and return
this number via the return value of the function.
mp4.c