[FFmpeg-cvslog] r23110 - trunk/libavcodec/iff.c

rbultje subversion
Thu May 13 15:18:25 CEST 2010


Author: rbultje
Date: Thu May 13 15:18:25 2010
New Revision: 23110

Log:
Move a while(..){..} -> do{..}while(..), slightly faster.

Patch by Sebastian Vater <cdgs basty googlemail com>.

Modified:
   trunk/libavcodec/iff.c

Modified: trunk/libavcodec/iff.c
==============================================================================
--- trunk/libavcodec/iff.c	Thu May 13 14:30:46 2010	(r23109)
+++ trunk/libavcodec/iff.c	Thu May 13 15:18:25 2010	(r23110)
@@ -173,11 +173,11 @@ static av_cold int decode_init(AVCodecCo
 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);
 }
 
 /**



More information about the ffmpeg-cvslog mailing list