[FFmpeg-devel] [PATCH 09/11] dca: replace some memcpy by AV_COPY128

Christophe Gisquet christophe.gisquet at gmail.com
Thu Feb 6 01:42:00 CET 2014


---
 libavcodec/dcadec.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 26c554d..03c5d6f 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1394,9 +1394,7 @@ static int dca_subsubframe(DCAContext *s, int base_channel, int block_index)
     /* Backup predictor history for adpcm */
     for (k = base_channel; k < s->prim_channels; k++)
         for (l = 0; l < s->vq_start_subband[k]; l++)
-            memcpy(s->subband_samples_hist[k][l],
-                   &subband_samples[k][l][4],
-                   4 * sizeof(subband_samples[0][0][0]));
+            AV_COPY128(s->subband_samples_hist[k][l], &subband_samples[k][l][4]);
 
     return 0;
 }
-- 
1.8.0.msysgit.0



More information about the ffmpeg-devel mailing list