diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-02-11 07:54:40 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-02-11 07:54:40 +0000 |
commit | f7d649185b62a83ab58514207151f2a8059090fb (patch) | |
tree | 717f98291258e747bc9f88a5bc1a900aa8523880 /libavcodec/indeo5.c | |
parent | 9cb5c760d73e08bcd5d441d261abe67d472e98ee (diff) | |
download | ffmpeg-f7d649185b62a83ab58514207151f2a8059090fb.tar.gz |
Move band checksum verifying into preprocessor condition, so compiler won't
complain about missing function prototype.
Originally committed as revision 21752 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/indeo5.c')
-rw-r--r-- | libavcodec/indeo5.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c index c0534cb98f..3ab372a8a6 100644 --- a/libavcodec/indeo5.c +++ b/libavcodec/indeo5.c @@ -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; } |