aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-30 18:43:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-30 18:49:25 +0200
commit82efa24c519acbd73c4b7ed07406ee0b4c8cf091 (patch)
tree252e7c27b9cedb2c7a2d9b711f5d8f37061a3993
parentf6b1cd3936df4e2bb6a71ca09db3842b0229d99f (diff)
downloadffmpeg-82efa24c519acbd73c4b7ed07406ee0b4c8cf091.tar.gz
avcodec/proresenc_anatoliy: simplify get()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/proresenc_anatoliy.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index f247a06a45..23323bb7fa 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -264,14 +264,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;
- stride >>= 1;
for (i = 0; i < 8; i++) {
- AV_WN64(block, AV_RN64(p));
- AV_WN64(block+4, AV_RN64(p+4));
- p += stride;
+ AV_WN64(block, AV_RN64(pixels));
+ AV_WN64(block+4, AV_RN64(pixels+8));
+ pixels += stride;
block += 8;
}
}