[MPlayer-cvslog] r33448 - trunk/gui/mplayer/gui_common.c
ib at wupperonline.de
Sun May 22 22:52:30 CEST 2011
Reimar Döffinger wrote on Sun, 22 May 2011 20:02:45 +0200:
> I missed that the variables are all unsigned, why not
> int64_t duration = fileh->play_duration;
> duration = FFMAX(duration - 10000*fileh->preroll, 0);
Nah. Why casting to int64_t only to be able to use FFMAX to figure out which
of two values is greater?
If you don't like the if-else, maybe a ?:-one-liner is more appealing to you?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 964 bytes
Desc: not available
More information about the MPlayer-cvslog