Fix for problem with RGB32 and margin calculation

Levesque, Pascal Pascal.Levesque at mindready.com
Thu May 30 15:56:51 CEST 2002


Hi,

I have a small fix for the file plugins/chroma/i420_rgb16.c
in I420_RGB32() the i_right_margin calculation must be changed to:
i_right_margin = (p_dest->p->i_pitch - p_dest->p->i_visible_bytes) / 4;
instead of:
i_right_margin = (p_dest->p->i_pitch - p_dest->p->i_visible_bytes) / 2; 
The value must be "4"  to reflect the "right" number of pixels.
This problem cause the scaling to skew the output when not using overlay
mode.

 
Pascal


-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list