Mercurial > libavcodec.hg
changeset 12322:530bf62f3940 libavcodec
Remove unneeded wrapper function.
author | jbr |
---|---|
date | Sat, 31 Jul 2010 16:50:27 +0000 |
parents | b2940a8f3db6 |
children | df22caaab59e |
files | flacenc.c |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/flacenc.c Sat Jul 31 16:46:32 2010 +0000 +++ b/flacenc.c Sat Jul 31 16:50:27 2010 +0000 @@ -632,13 +632,6 @@ } -static void encode_residual_verbatim(int32_t *res, int32_t *smp, int n) -{ - assert(n > 0); - memcpy(res, smp, n * sizeof(int32_t)); -} - - static void encode_residual_fixed(int32_t *res, const int32_t *smp, int n, int order) { @@ -824,7 +817,7 @@ /* VERBATIM */ if (frame->verbatim_only || n < 5) { sub->type = sub->type_code = FLAC_SUBFRAME_VERBATIM; - encode_residual_verbatim(res, smp, n); + memcpy(res, smp, n * sizeof(int32_t)); return sub->obits * n; }