[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.45,1.46

Arpi arpi at thot.banki.hu
Thu Aug 29 00:21:21 CEST 2002


Hi,

> >
> > > +    if(   sh->format == mmioFOURCC('R', 'V', '1', '0')
> > > +       || sh->format == mmioFOURCC('R', 'V', '1', '3')){
> > > +        unsigned int* extrahdr=(unsigned int*)(sh->bih+1);
> > > +        avctx->extradata_size= 8;
> > > +	avctx->extradata = malloc(avctx->extradata_size);
> >
> > hmm you could just do avctx->extradata = (sh->bih+1);
> > it won't be free'd until decoding ends so no need to duplicate
> hmm unsigned int and 64bit architectures ... 

hmm it won't work anyway :(

   sh->bih = malloc(sizeof(BITMAPINFOHEADER)+8);

so it should be fixed in demux_real instead of workarounds in vd_ffmpeg

btw where is 'unsigned int' 64bit long?
afaik int is 16/32/32 bit, long is 32/32/64 bit depending on arch 16/32/64


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-cvslog mailing list