diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-08-30 12:39:51 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-08-30 12:39:51 -0400 |
commit | be89c395872c57087a6fd0b004ee175677bb3d79 (patch) | |
tree | 5227fe9ba9ad7f485a839c3b1db99f059bff494e /src/repacketizer.c | |
parent | 382cad43ce1505a8bc809dd557b8b423d0017e24 (diff) | |
download | opus-be89c395872c57087a6fd0b004ee175677bb3d79.tar.gz |
Using OPUS_ macros for <string.h> operations
Removes a bunch of system #include <...> in the process
Diffstat (limited to 'src/repacketizer.c')
-rw-r--r-- | src/repacketizer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/repacketizer.c b/src/repacketizer.c index 4ef8e1ba..ac4a616c 100644 --- a/src/repacketizer.c +++ b/src/repacketizer.c @@ -29,10 +29,6 @@ #include "config.h" #endif -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - #include "opus.h" #include "opus_private.h" #include "os_support.h" @@ -181,11 +177,12 @@ int opus_repacketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsign *data++ = count; } } + break; } /* Copy the actual data */ for (i=0;i<count;i++) { - memcpy(data, frames[i], len[i]); + OPUS_COPY(data, frames[i], len[i]); data += len[i]; } return tot_size; |