[vlc-devel] [PATCH] Fix date_Increment when i_divider_den > 1

David Flynn davidf+nntp at woaf.net
Thu Aug 7 23:24:26 CEST 2008


On 2008-08-07, Rémi Denis-Courmont <rdenis at simphalempin.com> wrote:
> Le jeudi 7 août 2008 22:39:02 David Flynn, vous avez écrit :
>> +        /* It is guaranteed that: assert(i_remainder < 2*i_divider_num) */
> You might as well call assert() for real...

Indeed; although i'm usually wary in paths where the assertion isn't a
critical guard.  (There is no point in killing a process over a 1us
rounding error).

That doesn't reduce the guarantee though.

..david




More information about the vlc-devel mailing list