changeset 11120:b622564e2d60 libavcodec

Move band checksum verifying into preprocessor condition, so compiler won't complain about missing function prototype.
author kostya
date Thu, 11 Feb 2010 07:54:40 +0000
parents 134644e36859
children 1d4aeef800d4
files indeo5.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/indeo5.c	Wed Feb 10 14:51:57 2010 +0000
+++ b/indeo5.c	Thu Feb 11 07:54:40 2010 +0000
@@ -672,7 +672,8 @@
         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 @@
                    band->plane, band->band_num, band->checksum, chksum);
         }
     }
+#endif
 
     return result;
 }