shithub: aacenc

Download patch

ref: 65ce9b2f01fa55b62b66e4bfc490dde8b75defe8
parent: 02037bc1e50947fa252ffde7318bb48565dc62e4
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Mon Oct 9 13:42:55 EDT 2017

fixed compiler warnings

--- a/frontend/input.c
+++ b/frontend/input.c
@@ -391,12 +391,12 @@
 {
   int size;
   int i;
-  unsigned char *bufi;
+  uint8_t *bufi;
 
   if ((sndf->samplebytes > 4) || (sndf->samplebytes < 1))
     return 0;
 
-  bufi = (char *)buf + sizeof(*buf) * num - sndf->samplebytes * (num - 1) - sizeof(*buf);
+  bufi = (uint8_t *)buf + sizeof(*buf) * num - sndf->samplebytes * (num - 1) - sizeof(*buf);
 
   size = fread(bufi, sndf->samplebytes, num, sndf->f);
 
--- a/libfaac/bitstream.c
+++ b/libfaac/bitstream.c
@@ -26,6 +26,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "coder.h"
 #include "channels.h"