Commit 82efa24c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/proresenc_anatoliy: simplify get()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f6b1cd39
...@@ -264,14 +264,12 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb, ...@@ -264,14 +264,12 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb,
static void get(uint8_t *pixels, int stride, int16_t* block) static void get(uint8_t *pixels, int stride, int16_t* block)
{ {
int16_t *p = (int16_t*)pixels;
int i; int i;
stride >>= 1;
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
AV_WN64(block, AV_RN64(p)); AV_WN64(block, AV_RN64(pixels));
AV_WN64(block+4, AV_RN64(p+4)); AV_WN64(block+4, AV_RN64(pixels+8));
p += stride; pixels += stride;
block += 8; block += 8;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment