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
bcf79896
Commit
bcf79896
authored
Mar 26, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: fix fallback on PAR (fix #11075)
parent
56211a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+9
-2
No files found.
modules/demux/mp4/mp4.c
View file @
bcf79896
...
@@ -1773,8 +1773,15 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1773,8 +1773,15 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
if
(
p_pasp
&&
p_pasp
->
data
.
p_pasp
->
i_horizontal_spacing
>
0
&&
if
(
p_pasp
&&
p_pasp
->
data
.
p_pasp
->
i_horizontal_spacing
>
0
&&
p_pasp
->
data
.
p_pasp
->
i_vertical_spacing
>
0
)
p_pasp
->
data
.
p_pasp
->
i_vertical_spacing
>
0
)
{
{
p_track
->
fmt
.
video
.
i_sar_num
=
p_pasp
->
data
.
p_pasp
->
i_horizontal_spacing
;
/* Convert pixel ratio to picture/display aspect ratio */
p_track
->
fmt
.
video
.
i_sar_den
=
p_pasp
->
data
.
p_pasp
->
i_vertical_spacing
;
/* SAR * PAR -> DAR */
vlc_ureduce
(
&
p_track
->
fmt
.
video
.
i_sar_num
,
&
p_track
->
fmt
.
video
.
i_sar_den
,
(
uint64_t
)
p_pasp
->
data
.
p_pasp
->
i_horizontal_spacing
*
p_track
->
fmt
.
video
.
i_width
,
(
uint64_t
)
p_pasp
->
data
.
p_pasp
->
i_vertical_spacing
*
p_track
->
fmt
.
video
.
i_height
,
UINT32_MAX
);
}
}
/* Support for cropping (eg. in H263 files) */
/* Support for cropping (eg. in H263 files) */
...
...
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