Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
7c239efe
Commit
7c239efe
authored
Sep 09, 2004
by
gbazin
Browse files
* src/extras/libc.c: forgot a small modification.
parent
ca948c09
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/extras/libc.c
View file @
7c239efe
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment