Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
fad403c0
Commit
fad403c0
authored
Sep 20, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/x264.c: fixed aspect ratio.
parent
c68071f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/codec/x264.c
modules/codec/x264.c
+10
-5
No files found.
modules/codec/x264.c
View file @
fad403c0
...
...
@@ -135,11 +135,16 @@ static int Open ( vlc_object_t *p_this )
if
(
p_enc
->
fmt_in
.
video
.
i_aspect
>
0
)
{
p_sys
->
param
.
vui
.
i_sar_width
=
p_enc
->
fmt_in
.
video
.
i_aspect
*
p_enc
->
fmt_in
.
video
.
i_height
*
p_enc
->
fmt_in
.
video
.
i_height
/
p_enc
->
fmt_in
.
video
.
i_width
;
p_sys
->
param
.
vui
.
i_sar_height
=
p_enc
->
fmt_in
.
video
.
i_height
;
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_enc
->
fmt_in
.
video
.
i_height
;
i_den
=
VOUT_ASPECT_FACTOR
*
p_enc
->
fmt_in
.
video
.
i_width
;
vlc_reduce
(
&
i_dst_num
,
&
i_dst_den
,
i_num
,
i_den
,
0
);
p_sys
->
param
.
vui
.
i_sar_width
=
i_dst_num
;
p_sys
->
param
.
vui
.
i_sar_height
=
i_dst_den
;
}
if
(
p_enc
->
fmt_in
.
video
.
i_frame_rate_base
>
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