Commit 7c239efe authored by Gildas Bazin's avatar Gildas Bazin

* src/extras/libc.c: forgot a small modification.

parent ca948c09
......@@ -434,8 +434,8 @@ vlc_bool_t vlc_reduce( int *pi_dst_nom, int *pi_dst_den,
if( i_den == 0 )
{
i_nom = 0;
i_den = 1;
*pi_dst_nom = 0;
*pi_dst_den = 1;
return 1;
}
......@@ -455,6 +455,8 @@ vlc_bool_t vlc_reduce( int *pi_dst_nom, int *pi_dst_den,
i_nom /= i_gcd;
i_den /= i_gcd;
if( i_max == 0 ) i_max = I64C(0xFFFFFFFF);
if( i_nom > i_max || i_den > i_max )
{
int i_a0_num = 0, i_a0_den = 1, i_a1_num = 1, i_a1_den = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment