[Mplayer-cvslog] CVS: main/libmpdemux demux_fli.c,1.1,1.2
Felix Buenemann
atmosfear at users.sourceforge.net
Sun Nov 25 03:01:37 CET 2001
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);
it doesn't need extra var and is faster, too.
--
Best Regards,
Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
More information about the MPlayer-cvslog
mailing list