Patch by Keiji Costantini ( strites gmail com ) Originally committed as revision 26706 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale