[MPlayer-dev-eng] [PATCH] rff - demux_control patch v1.1

Arpi arpi at thot.banki.hu
Sun Nov 10 11:48:02 CET 2002


Hi,

> > > +    	    else *((int *)arg)=(int)(demuxer->filepos/((demuxer
> > > ->movi_end-demuxer->movi_start)/100));
> > > +	    return DEMUXER_CTRL_OK;
> > >
> > > -    picture->bitrate = (buffer[4]<<10)|(buffer[5]<<2)|(buffer[6]>>6);
> > > +    picture->bitrate =
> > > ((buffer[4]&0x7f)<<10)|(buffer[5]<<2)|(buffer[6]>>6);
> > hmm
> This is from xine's mpg_demux. I don't know why it is done that way. Not good?

dunno
imho do not change it unless you have any samples requiring this change
the orig code is from libmpeg2 which is based on teh mpeg specs
(and xine is just a hack :))


A'rpi / Astral & ESP-team

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



More information about the MPlayer-dev-eng mailing list