mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Move a while(..){..} -> do{..}while(..), slightly faster.
Patch by Sebastian Vater <cdgs basty googlemail com>. Originally committed as revision 23110 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e904c51fa1
commit
2f955ea41b
@ -173,11 +173,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
static void decodeplane8(uint8_t *dst, const uint8_t *buf, int buf_size, int plane)
|
static void decodeplane8(uint8_t *dst, const uint8_t *buf, int buf_size, int plane)
|
||||||
{
|
{
|
||||||
const uint64_t *lut = plane8_lut[plane];
|
const uint64_t *lut = plane8_lut[plane];
|
||||||
while (buf_size--) {
|
do {
|
||||||
uint64_t v = AV_RN64A(dst) | lut[*buf++];
|
uint64_t v = AV_RN64A(dst) | lut[*buf++];
|
||||||
AV_WN64A(dst, v);
|
AV_WN64A(dst, v);
|
||||||
dst += 8;
|
dst += 8;
|
||||||
}
|
} while (--buf_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user