From 2779091949f95ea3d0231ebe131e78f907963897 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 16 Dec 2013 21:58:32 +0100 Subject: [PATCH] aac_afh.c: Do not open-code aac_read_int32(). We have this helper, so use it. --- aac_afh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aac_afh.c b/aac_afh.c index 5018e2f4..d3e69454 100644 --- 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'; -- 2.39.5