Mercurial > libavcodec.hg
changeset 11717:269ce565c70b libavcodec
Move a while(..){..} -> do{..}while(..), slightly faster.
Patch by Sebastian Vater <cdgs basty googlemail com>.
author | rbultje |
---|---|
date | Thu, 13 May 2010 13:18:25 +0000 |
parents | fcb1d0addf28 |
children | f2beca0bbf98 |
files | iff.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/iff.c Thu May 13 10:04:31 2010 +0000 +++ b/iff.c Thu May 13 13:18:25 2010 +0000 @@ -173,11 +173,11 @@ static void decodeplane8(uint8_t *dst, const uint8_t *buf, int buf_size, int plane) { const uint64_t *lut = plane8_lut[plane]; - while (buf_size--) { + do { uint64_t v = AV_RN64A(dst) | lut[*buf++]; AV_WN64A(dst, v); dst += 8; - } + } while (--buf_size); } /**