]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp4: Improve mp4_get_sample_size().
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 27 Aug 2021 13:38:25 +0000 (15:38 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 6 Jun 2022 18:46:37 +0000 (20:46 +0200)
commit5ed19fbaa7145db070142c288ec5eb184d36dbc5
treed67d16e112c89139b84c0e16b9c3f0b17d945e45
parent83607bd0556f3c7aa5880567e3d089e76c0d9746
mp4: Improve mp4_get_sample_size().

Use an unsigned type for the sample number and check that the passed
number is within range. Since the function can fail now, let it return
int and return the sample size via an additional pointer argument.
aac_afh.c
mp4.c
mp4.h