patch by Art Clarke, aclarke vlideshow com
Originally committed as revision 15744 to svn://svn.ffmpeg.org/ffmpeg/trunk
break;
case FF_PIXEL_PLANAR:
if (plane == 1 || plane == 2)
- width >>= pf->x_chroma_shift;
+ width= -((-width)>>pf->x_chroma_shift);
return (width * pf->depth + 7) >> 3;
break;
h = height;
if (i == 1 || i == 2) {
w >>= pf->x_chroma_shift;
- h >>= pf->y_chroma_shift;
+ h= -((-height)>>pf->y_chroma_shift);
}
ff_img_copy_plane(dst->data[i], dst->linesize[i],
src->data[i], src->linesize[i],