Fix for problem with RGB32 and margin calculation

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


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


This is the vlc-devel mailing-list, see
To unsubscribe, please read
If you are in trouble, please contact <postmaster at>

More information about the vlc-devel mailing list