]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
mp4: Don't abort on truncated files.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 29 Jun 2022 11:38:02 +0000 (13:38 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 29 Jun 2022 11:38:02 +0000 (13:38 +0200)
If the source file got truncated it may happen that a chunk cannot
be read because the computed file offset is beyond EOF. Currently,
aac_afh_get_chunk() aborts in this case because we assert that the
file offset is within range. Return a proper error code instead and
also change aac_get_file_info() to bail out if aac_afh_get_chunk()
returns negative.


No differences found