]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp4: Add error checking for atom_read().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 18 Aug 2021 14:59:35 +0000 (16:59 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
commit3841a3a850ce5c8d145f03fe37a9e6fc3182930f
tree7b878ce58f040ab9a40dee5b6e322e05b4847daf
parent5f123ac45aed8c3480e8211b513cf9b6bd7eb2ab
mp4: Add error checking for atom_read().

While the individual atom parsers all perform error checking and
return an error code, their caller, atom_read(), ignores errors.

Address this shortcoming, simplify the function by using a switch
instead of an if-else chain and move the descriptions of the atoms
to the enum where they belong.
mp4.c