Using OPUS_ macros for <string.h> operations

Removes a bunch of system #include <...> in the process
This commit is contained in:
Jean-Marc Valin 2011-08-30 12:39:51 -04:00
parent 382cad43ce
commit be89c39587
10 changed files with 78 additions and 82 deletions

View file

@ -33,9 +33,6 @@
#include "opus.h"
#include "opus_private.h"
#include "stack_alloc.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "float_cast.h"
#include "os_support.h"
@ -297,7 +294,7 @@ int opus_multistream_encode_float(
}
/* IMPORTANT: Here we assume that the encoder only returned one frame */
tot_size += len;
memcpy(data, &tmp_data[1], len-1);
OPUS_COPY(data, &tmp_data[1], len-1);
}
RESTORE_STACK;
return tot_size;