avcodec/proresenc_anatoliy: load 4 samples at a time in get()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 30 May 2014 16:42:01 +0000 (18:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 30 May 2014 16:49:25 +0000 (18:49 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/proresenc_anatoliy.c

index 391ffa9..f247a06 100644 (file)
@@ -265,13 +265,12 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb,
 static void get(uint8_t *pixels, int stride, int16_t* block)
 {
     int16_t *p = (int16_t*)pixels;
-    int i, j;
+    int i;
 
     stride >>= 1;
     for (i = 0; i < 8; i++) {
-        for (j = 0; j < 8; j++) {
-            block[j] = p[j];
-        }
+        AV_WN64(block, AV_RN64(p));
+        AV_WN64(block+4, AV_RN64(p+4));
         p += stride;
         block += 8;
     }