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
11662eb8
Commit
11662eb8
authored
Mar 25, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: asf: only apply valid A/R
refs #11063
parent
fd569c88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+11
-7
No files found.
modules/demux/asf/asf.c
View file @
11662eb8
...
...
@@ -657,17 +657,21 @@ static void ParsePayloadExtensions(demux_t *p_demux, asf_track_t *tk,
uint8_t
i_ratio_x
=
*
p_data
;
uint8_t
i_ratio_y
=
*
(
p_data
+
1
);
if
(
tk
->
p_fmt
->
video
.
i_sar_num
!=
i_ratio_x
||
tk
->
p_fmt
->
video
.
i_sar_den
!=
i_ratio_y
)
{
/* Only apply if origin pixel size >= 1x1, due to broken yacast */
if
(
tk
->
p_fmt
->
video
.
i_height
*
i_ratio_x
>
tk
->
p_fmt
->
video
.
i_width
*
i_ratio_y
)
{
vout_thread_t
*
p_vout
=
input_GetVout
(
p_demux
->
p_input
);
if
(
p_vout
)
{
msg_Info
(
p_demux
,
"Changing aspect ratio to %i/%i"
,
i_ratio_x
,
i_ratio_y
);
tk
->
p_fmt
->
video
.
i_sar_num
=
i_ratio_x
;
tk
->
p_fmt
->
video
.
i_sar_den
=
i_ratio_y
;
vout_ChangeAspectRatio
(
p_vout
,
i_ratio_x
,
i_ratio_y
);
vlc_object_release
(
p_vout
);
}
}
tk
->
p_fmt
->
video
.
i_sar_num
=
i_ratio_x
;
tk
->
p_fmt
->
video
.
i_sar_den
=
i_ratio_y
;
}
}
i_length
-=
i_payload_extensions_size
;
p_data
+=
i_payload_extensions_size
;
...
...
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