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

Arpi arpi at thot.banki.hu
Thu Aug 29 00:07:47 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


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