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

Klaus Post (KPO) KPO at zenaria.com
Tue Feb 10 11:25:16 CET 2004


Hi!

Yes.  I posted a (proper) fix at doom9 for Koepi.

- See:
http://forum.doom9.org/showthread.php?s=&threadid=70379&perpage=40&pagen
umber=2  - post #4 on that page.

I also set the UV-planes for proper alignment, and added the same code
for the decoder. I don't know if setting stride for the other planes
have any effect, but everything seem to work nicely now.



 
Regards, Klaus Post
Producer
 
 

-----Original Message-----
From: Wei Dai [mailto:weidai at weidai.com] 
Sent: 10. februar 2004 04:52
To: Edouard Gomez; xvid-devel at xvid.org
Subject: Re: [XviD-devel] RE: possible vfw YV12 stride bug

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.
_______________________________________________
XviD-devel mailing list
XviD-devel at xvid.org
http://list.xvid.org/mailman/listinfo/xvid-devel


More information about the XviD-devel mailing list