]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aac_common.c
resample: Simplify initialization().
[paraslash.git] / aac_common.c
index 8fc9523c28736e8e3b4add4551fff1ff38db23d3..70a9d77d51b320ee8511f394186528164362273a 100644 (file)
@@ -13,6 +13,7 @@
 #include "para.h"
 #include "aac.h"
 #include "error.h"
+#include "portable_io.h"
 
 /**
  * Get a new libfaad decoder handle.
@@ -120,7 +121,7 @@ ssize_t aac_find_entry_point(char *buf, size_t buflen, size_t *skip)
                        continue;
                PARA_INFO_LOG("found stco@%zu\n", i);
                i += 12;
-               ret = aac_read_int32(buf + i); /* first offset */
+               ret = read_u32_be(buf + i); /* first offset */
                i += 4;
                PARA_INFO_LOG("entry point: %zd\n", ret);
                *skip = i;