[XviD-devel] RE: possible vfw YV12 stride bug

Wei Dai weidai at weidai.com
Tue Feb 10 04:52:16 CET 2004


On Wed, Feb 04, 2004 at 09:21:06PM +0100, Edouard Gomez wrote:
> Can't answer for this one, i did not follow the thread so, please the
> one who followed it, fix it (if possible).

Can someone please commit the following? Change:

	if (frame.input.csp == XVID_CSP_I420 || frame.input.csp == XVID_CSP_YV12)               
		frame.input.stride[0] = (frame.input.stride[0]*2)/3;

to:

	if (frame.input.csp == XVID_CSP_I420 || frame.input.csp == XVID_CSP_YV12)
		frame.input.stride[0] = ((icc->lpbiInput->biWidth + 3) / 4) * 4;

Klaus Post suggested something similar in this thread, but left out the 
"* 4" at the end.


More information about the XviD-devel mailing list