dca: replace some memcpy by AV_COPY128
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Fri, 14 Feb 2014 16:00:49 +0000 (16:00 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 15 Feb 2014 18:03:10 +0000 (19:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dcadec.c

index 1deddf5..19aca64 100644 (file)
@@ -1402,9 +1402,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;
 }