Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
ca948c09
Commit
ca948c09
authored
Sep 09, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/theora.c: use vlc_reduce() to before storing the aspect-ratio.
parent
574d357d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/codec/theora.c
modules/codec/theora.c
+9
-4
No files found.
modules/codec/theora.c
View file @
ca948c09
...
...
@@ -595,7 +595,7 @@ static int OpenEncoder( vlc_object_t *p_this )
p_sys
->
ti
.
frame_width
=
p_enc
->
fmt_in
.
video
.
i_width
;
p_sys
->
ti
.
frame_height
=
p_enc
->
fmt_in
.
video
.
i_height
;
p_sys
->
ti
.
offset_x
=
0
/*frame_x_offset*/
;
p_sys
->
ti
.
offset_y
=
0
/*frame_y_offset*/
;
p_sys
->
ti
.
offset_y
=
0
/*frame_y_offset*/
;
p_sys
->
i_width
=
p_sys
->
ti
.
width
;
p_sys
->
i_height
=
p_sys
->
ti
.
height
;
...
...
@@ -614,9 +614,14 @@ static int OpenEncoder( vlc_object_t *p_this )
if
(
p_enc
->
fmt_in
.
video
.
i_aspect
)
{
p_sys
->
ti
.
aspect_numerator
=
p_enc
->
fmt_in
.
video
.
i_aspect
*
p_sys
->
ti
.
height
/
p_sys
->
ti
.
width
;
p_sys
->
ti
.
aspect_denominator
=
VOUT_ASPECT_FACTOR
;
int64_t
i_num
,
i_den
;
int
i_dst_num
,
i_dst_den
;
i_num
=
p_enc
->
fmt_in
.
video
.
i_aspect
*
(
int64_t
)
p_sys
->
ti
.
height
;
i_den
=
VOUT_ASPECT_FACTOR
*
p_sys
->
ti
.
width
;
vlc_reduce
(
&
i_dst_num
,
&
i_dst_den
,
i_num
,
i_den
,
0
);
p_sys
->
ti
.
aspect_numerator
=
i_dst_num
;
p_sys
->
ti
.
aspect_denominator
=
i_dst_den
;
}
else
{
...
...
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