]> git.tuebingen.mpg.de Git - paraslash.git/commit - aac_afh.c
mp4: Check the return value of ->truncate().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 26 Aug 2021 20:11:40 +0000 (22:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 6 Jun 2022 18:46:37 +0000 (20:46 +0200)
commit6b27f3436334bc89cad31b6fff5399b0d17c3f38
tree5b335ffea9f5d9cc2cfecf1739960f0366c8d227
parentb540913d5c85386eede1c10930e14219fb7e1fea
mp4: Check the return value of ->truncate().

This callback is implemented as a simple wrapper for the ftruncate()
system call, which can fail for a number of reasons. Currently the
callback returns unsigned and the return value is ignored. Fortunately,
this is easy to fix.
aac_afh.c
mp4.c
mp4.h