comparison indeo5.c @ 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 5ca4eb4a1a3f
children 1d4aeef800d4
comparison
equal deleted inserted replaced
11119:134644e36859 11120:b622564e2d60
670 idx2 = band->corr[i*2+1]; 670 idx2 = band->corr[i*2+1];
671 FFSWAP(uint8_t, band->rv_map->runtab[idx1], band->rv_map->runtab[idx2]); 671 FFSWAP(uint8_t, band->rv_map->runtab[idx1], band->rv_map->runtab[idx2]);
672 FFSWAP(int16_t, band->rv_map->valtab[idx1], band->rv_map->valtab[idx2]); 672 FFSWAP(int16_t, band->rv_map->valtab[idx1], band->rv_map->valtab[idx2]);
673 } 673 }
674 674
675 if (IVI_DEBUG && band->checksum_present) { 675 #if IVI_DEBUG
676 if (band->checksum_present) {
676 chksum = ivi_calc_band_checksum(band); 677 chksum = ivi_calc_band_checksum(band);
677 if (chksum != band->checksum) { 678 if (chksum != band->checksum) {
678 av_log(avctx, AV_LOG_ERROR, 679 av_log(avctx, AV_LOG_ERROR,
679 "Band checksum mismatch! Plane %d, band %d, received: %x, calculated: %x\n", 680 "Band checksum mismatch! Plane %d, band %d, received: %x, calculated: %x\n",
680 band->plane, band->band_num, band->checksum, chksum); 681 band->plane, band->band_num, band->checksum, chksum);
681 } 682 }
682 } 683 }
684 #endif
683 685
684 return result; 686 return result;
685 } 687 }
686 688
687 689