[vlc-devel] [PATCH] core: mtime: assert divider_num is not 0
Thomas Guillem
thomas at gllm.fr
Mon Jul 29 10:32:34 CEST 2019
LGTM
On Sun, Jul 28, 2019, at 13:12, Marvin Scholz wrote:
> ---
> src/misc/mtime.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/misc/mtime.c b/src/misc/mtime.c
> index eef1950b59..fb1532554a 100644
> --- a/src/misc/mtime.c
> +++ b/src/misc/mtime.c
> @@ -76,6 +76,7 @@ void date_Init( date_t *p_date, uint32_t i_divider_n,
> uint32_t i_divider_d )
>
> void date_Change( date_t *p_date, uint32_t i_divider_n, uint32_t
> i_divider_d )
> {
> + assert( p_date->i_divider_num != 0 );
> /* change time scale of remainder */
> p_date->i_remainder = p_date->i_remainder * i_divider_n /
> p_date->i_divider_num;
> p_date->i_divider_num = i_divider_n;
> --
> 2.19.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list