Skip to content
Snippets Groups Projects
Commit f7d64918 authored by Kostya Shishkov's avatar Kostya Shishkov
Browse files

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
parent 9cb5c760
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment