[MPlayer-dev-eng] [PATCH] vd_sgi bugfix on AMD64

Paul-Francois Fontigny pff at filmik.be
Fri Jun 30 02:03:29 CEST 2006


On Thu, 2006-06-29 at 16:56 -0400, Reynaldo H. Verdejo Pinochet wrote:
> > SGI compressed images don't show up correctly on AMD64.
> 
> Can you elavorate a little ?
> 

SGI rle compressed image are made, in part, of an array of 32 bit
pointers, pointing to the rle data of the scan lines.
The type of the array was 'unsigned long*', on an AMD64 that is a 64 bit
pointer. It didn't show up correctly. Amazingly there was not crash.

I must confess I have a hard time reading:
          be2me_32(*(uint32_t*) &starttab[y + z * ysize])
I'll be please to leave the pleasure and honor of those cast to someone
who have read K&R more in depth than me. ;-)

PF (Paul-Francois)




More information about the MPlayer-dev-eng mailing list