[FFmpeg-soc] [soc]: r5599 - indeo5/ivi_common.c
kostya
subversion at mplayerhq.hu
Wed Jan 27 17:03:41 CET 2010
Author: kostya
Date: Wed Jan 27 17:03:41 2010
New Revision: 5599
Log:
use FFALIGN macro where applicable
Modified:
indeo5/ivi_common.c
Modified: indeo5/ivi_common.c
==============================================================================
--- indeo5/ivi_common.c Wed Jan 27 17:02:59 2010 (r5598)
+++ indeo5/ivi_common.c Wed Jan 27 17:03:41 2010 (r5599)
@@ -143,9 +143,9 @@ int av_cold ff_ivi_init_planes(IVIPlaneD
/* luma band buffers will be aligned on 16x16 (max macroblock size) */
/* chroma band buffers will be aligned on 8x8 (max macroblock size) */
- align_fac = p ? 7 : 15;
- width_aligned = (b_width + align_fac) & ~align_fac;
- height_aligned = (b_height + align_fac) & ~align_fac;
+ align_fac = p ? 8 : 16;
+ width_aligned = FFALIGN(b_width , align_fac);
+ height_aligned = FFALIGN(b_height, align_fac);
buf_size = width_aligned * height_aligned * sizeof(int16_t);
for (b = 0; b < planes[p].num_bands; b++) {
More information about the FFmpeg-soc
mailing list