Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
db0ec106
Commit
db0ec106
authored
Dec 06, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix avformat module compilation since AVStream gets sample_aspect_ratio from 52.21.0 and over.
parent
e7d3f3d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
modules/demux/avformat/mux.c
modules/demux/avformat/mux.c
+2
-0
No files found.
modules/demux/avformat/mux.c
View file @
db0ec106
...
...
@@ -252,8 +252,10 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
&
codec
->
sample_aspect_ratio
.
den
,
i_aspect_num
*
(
int64_t
)
codec
->
height
,
i_aspect_den
*
(
int64_t
)
codec
->
width
,
1
<<
30
);
#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(21<<8)+0)
stream
->
sample_aspect_ratio
.
num
=
codec
->
sample_aspect_ratio
.
num
;
stream
->
sample_aspect_ratio
.
den
=
codec
->
sample_aspect_ratio
.
den
;
#endif
codec
->
time_base
.
den
=
p_input
->
p_fmt
->
video
.
i_frame_rate
;
codec
->
time_base
.
num
=
p_input
->
p_fmt
->
video
.
i_frame_rate_base
;
break
;
...
...
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