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
4e963fac
Commit
4e963fac
authored
Jan 10, 2014
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avformat: use CLOCK_FREQ
parent
14ffb1a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/avformat/mux.c
modules/demux/avformat/mux.c
+3
-3
No files found.
modules/demux/avformat/mux.c
View file @
4e963fac
...
...
@@ -291,14 +291,14 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
if
(
p_data
->
i_pts
>
0
)
pkt
.
pts
=
p_data
->
i_pts
*
p_stream
->
time_base
.
den
/
INT64_C
(
1000000
)
/
p_stream
->
time_base
.
num
;
CLOCK_FREQ
/
p_stream
->
time_base
.
num
;
if
(
p_data
->
i_dts
>
0
)
pkt
.
dts
=
p_data
->
i_dts
*
p_stream
->
time_base
.
den
/
INT64_C
(
1000000
)
/
p_stream
->
time_base
.
num
;
CLOCK_FREQ
/
p_stream
->
time_base
.
num
;
/* this is another hack to prevent libavformat from triggering the "non monotone timestamps" check in avformat/utils.c */
p_stream
->
cur_dts
=
(
p_data
->
i_dts
*
p_stream
->
time_base
.
den
/
INT64_C
(
1000000
)
/
p_stream
->
time_base
.
num
)
-
1
;
CLOCK_FREQ
/
p_stream
->
time_base
.
num
)
-
1
;
if
(
av_write_frame
(
p_sys
->
oc
,
&
pkt
)
<
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