[MPlayer-dev-eng] [PATCH] fixing rgb24toyv12

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Aug 10 18:48:34 CEST 2004


Hi,
> the height-2 -> height (and related) change is wrong, it will segfault if the 
> width has the wrong value

no, because I do
width &= ~1;
height &= ~1;
on top, it just ignores the border.
It was wrong before, because even the C version wouldn't work when width 
or height not divisible by two! Lines 2327, 2339, 2347. It always 
converts the Y values of both lines, even when the second one would be 
height+1... same is true for width % 2 != 0.

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list