[Mplayer-cvslog] CVS: main/libmpdemux demux_fli.c,1.1,1.2

Arpi arpi at thot.banki.hu
Sun Nov 25 09:10:22 CET 2001


Hi,

> On Sunday, 25. November 2001 01:56, you wrote:
> >    // get the speed
> > -  sh_video->fps = 1000 / stream_read_word_le(demuxer->stream);
> > +  speed = stream_read_word_le(demuxer->stream);
> > +  if (speed == 0)
> > +    speed = 1;
> > +  sh_video->fps = 1000 / speed;
> why not use more efficient:
> sh_video->fps = 1000 / (stream_read_word_le(demuxer->stream) || 1);

i doubt it will work. gc will see boolean stuff and results will be always 1


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu



More information about the MPlayer-cvslog mailing list