[FFmpeg-soc] [soc]: r5585 - indeo5/ivi_common.c
kostya
subversion at mplayerhq.hu
Fri Jan 15 10:14:07 CET 2010
Author: kostya
Date: Fri Jan 15 10:14:07 2010
New Revision: 5585
Log:
Round band dimensions correctly
Modified:
indeo5/ivi_common.c
Modified: indeo5/ivi_common.c
==============================================================================
--- indeo5/ivi_common.c Fri Jan 15 10:04:35 2010 (r5584)
+++ indeo5/ivi_common.c Fri Jan 15 10:14:07 2010 (r5585)
@@ -138,8 +138,8 @@ int av_cold ff_ivi_init_planes(IVIPlaneD
/* select band dimensions: if there is only one band then it
* has the full size, if there are several bands each of them
* has only half size */
- b_width = planes[p].num_bands == 1 ? planes[p].width : planes[p].width >> 1;
- b_height = planes[p].num_bands == 1 ? planes[p].height : planes[p].height >> 1;
+ b_width = planes[p].num_bands == 1 ? planes[p].width : (planes[p].width + 1) >> 1;
+ b_height = planes[p].num_bands == 1 ? planes[p].height : (planes[p].height + 1) >> 1;
/* luma band buffers will be aligned on 16x16 (max macroblock size) */
/* chroma band buffers will be aligned on 8x8 (max macroblock size) */
More information about the FFmpeg-soc
mailing list