[FFmpeg-cvslog] r24622 - trunk/libavcodec/flacenc.c

jbr subversion
Sat Jul 31 18:50:27 CEST 2010


Author: jbr
Date: Sat Jul 31 18:50:27 2010
New Revision: 24622

Log:
Remove unneeded wrapper function.

Modified:
   trunk/libavcodec/flacenc.c

Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c	Sat Jul 31 18:46:32 2010	(r24621)
+++ trunk/libavcodec/flacenc.c	Sat Jul 31 18:50:27 2010	(r24622)
@@ -632,13 +632,6 @@ static uint32_t calc_rice_params_lpc(Ric
 }
 
 
-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(FlacEncode
     /* 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;
     }
 



More information about the ffmpeg-cvslog mailing list