提交 82efa24c 编写于 作者: M Michael Niedermayer

avcodec/proresenc_anatoliy: simplify get()

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 f6b1cd39
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册