diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2010-07-31 16:50:27 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2010-07-31 16:50:27 +0000 |
commit | 43b3273e5b2ab022f068d758fdaba90aee790fbf (patch) | |
tree | 9c3121bec46a9ac95336e379d9b9330fccc708ab /libavcodec/flacenc.c | |
parent | 0f5cc12c4f7282fa35a2bfd34519ac7b04eed7a3 (diff) | |
download | ffmpeg-43b3273e5b2ab022f068d758fdaba90aee790fbf.tar.gz |
Remove unneeded wrapper function.
Originally committed as revision 24622 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r-- | libavcodec/flacenc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 487d0234fb..afaa0c309f 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -632,13 +632,6 @@ static uint32_t calc_rice_params_lpc(RiceContext *rc, int pmin, int pmax, } -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 @@ static int encode_residual_ch(FlacEncodeContext *s, int ch) /* 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; } |