]> git.tuebingen.mpg.de Git - paraslash.git/commit - aac_afh.c
portable_io.h: Provide big-endian versions and use them for aac.
authorAndre Noll <maan@systemlinux.org>
Mon, 16 Dec 2013 21:18:27 +0000 (22:18 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 20 Dec 2016 15:53:52 +0000 (16:53 +0100)
commit8bc0a13623881429d06986595386200d34540d8c
treec26647e912c61cddffc9cda6421031ebb84aa381
parent2557001e2e0a6c078c7907a021362e29e534822a
portable_io.h: Provide big-endian versions and use them for aac.

The aac audio format handler code contains some instances that read a
big-endian encoded 32 or 64 bit number from a buffer. While for the
32 bit case there is a helper function aac_read_int32(), the 64 bit
case is open-coded.

We already have similar functions for the conversion of little-endian
entities. This patch adds their big endian counterparts as inline
functions to portable_io.h and changes the callers to use those.

The patch also gets rid of two fprintf() statements in write_portable()
which were commented out for ages.
aac.h
aac_afh.c
aac_common.c
portable_io.h