diff options
author | Sebastian Vater <cdgs.basty@googlemail.com> | 2010-05-13 13:18:25 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-05-13 13:18:25 +0000 |
commit | 2f955ea41b804c0804f71d27a0bba13e59988726 (patch) | |
tree | 52d9451effae80d6c6ff72b13c445e711506e158 | |
parent | e904c51fa16185799094b4d9731488854f6057a9 (diff) | |
download | ffmpeg-2f955ea41b804c0804f71d27a0bba13e59988726.tar.gz |
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
-rw-r--r-- | libavcodec/iff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/iff.c b/libavcodec/iff.c index b77d3dc41e..2b3648bc8a 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -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) { 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); } /** |