Move band checksum verifying into preprocessor condition, so compiler won't
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 11 Feb 2010 07:54:40 +0000 (07:54 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 11 Feb 2010 07:54:40 +0000 (07:54 +0000)
complain about missing function prototype.

Originally committed as revision 21752 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/indeo5.c

index c0534cb..3ab372a 100644 (file)
@@ -672,7 +672,8 @@ static int decode_band(IVI5DecContext *ctx, int plane_num,
         FFSWAP(int16_t, band->rv_map->valtab[idx1], band->rv_map->valtab[idx2]);
     }
 
-    if (IVI_DEBUG && band->checksum_present) {
+#if IVI_DEBUG
+    if (band->checksum_present) {
         chksum = ivi_calc_band_checksum(band);
         if (chksum != band->checksum) {
             av_log(avctx, AV_LOG_ERROR,
@@ -680,6 +681,7 @@ static int decode_band(IVI5DecContext *ctx, int plane_num,
                    band->plane, band->band_num, band->checksum, chksum);
         }
     }
+#endif
 
     return result;
 }