[Mplayer-dev-eng] Porting to IRIX/Solaris

Christoph Lampert lampert at math.chalmers.se
Mon Aug 6 00:10:01 CEST 2001


On Mon, 6 Aug 2001, Jean-Francois Beleyn wrote:

> On Sat, 4 Aug 2001, Arpi wrote:
>
> > Hi,
> >
> > > Also got a seg fault when i opened an avi (divx), after some time i
> > > located the problem at:
> > >
> > > aviheader.c line 91:
> > > sh_video->bih=calloc((chunksize<sizeof(BITMAPINFOHEADER))?sizeof(BITMAPINFOHEADER):chunksize,1);
> >
> > what is segfaulting? calloc() function or sh_video == NULL ?
> >
> sh_video == NULL
>
> on line 78:
> if(h.fccType==streamtypeVIDEO){
> we only need to compare the first 32 bits not the full 64 , so:
>  if(((int) h.fccType)==((int) streamtypeVIDEO)){
>
> or maybe make FOURCC and mmioFOURCC 32 bit (int) instead of 64 bit
> (DWORD/long) on alpha ?

(int)longvalue   does NOT give the first 32 bits but the _last_ 32 on
BIG_ENDIAN machines, because it returns 4 lowest-order-bytes and longs are
saved hightest to lowest.

Make FOURCC an int32_t , because it's supposed to be 32 bit everywhere.

gruel



_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list