projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c3826
)
aac_afh.c: Do not open-code aac_read_int32().
author
Andre Noll
<maan@systemlinux.org>
Mon, 16 Dec 2013 20:58:32 +0000
(21:58 +0100)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 28 Dec 2015 18:50:50 +0000
(18:50 +0000)
We have this helper, so use it.
aac_afh.c
patch
|
blob
|
history
diff --git
a/aac_afh.c
b/aac_afh.c
index 5018e2f4b09b7d0afce6b27ef88eb7dd2ce0c374..d3e694548a3dbfaf08e40eb5cd8ba01bc10af7cf 100644
(file)
--- a/
aac_afh.c
+++ b/
aac_afh.c
@@
-52,7
+52,7
@@
static int atom_cmp(const unsigned char *buf1, const char *buf2)
static int read_atom_header(unsigned char *buf, uint64_t *subsize, unsigned char type[5])
{
int i;
- uint64_t size =
(buf[0] << 24) + (buf[1] << 16) + (buf[2] << 8) + buf[3]
;
+ uint64_t size =
aac_read_int32(buf)
;
memcpy(type, buf + 4, 4);
type[4] = '\0';