Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
4a51075f
Commit
4a51075f
authored
Sep 27, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/examples/muxing: fix underflow in duration of encoded streams
Now they are exactly 10 seconds long. Fixes #5684.
parent
1929dd4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
muxing.c
doc/examples/muxing.c
+2
-2
No files found.
doc/examples/muxing.c
View file @
4a51075f
...
...
@@ -285,7 +285,7 @@ static AVFrame *get_audio_frame(OutputStream *ost)
/* check if we want to generate more frames */
if
(
av_compare_ts
(
ost
->
next_pts
,
ost
->
enc
->
time_base
,
STREAM_DURATION
,
(
AVRational
){
1
,
1
})
>
=
0
)
STREAM_DURATION
,
(
AVRational
){
1
,
1
})
>
0
)
return
NULL
;
for
(
j
=
0
;
j
<
frame
->
nb_samples
;
j
++
)
{
...
...
@@ -464,7 +464,7 @@ static AVFrame *get_video_frame(OutputStream *ost)
/* check if we want to generate more frames */
if
(
av_compare_ts
(
ost
->
next_pts
,
c
->
time_base
,
STREAM_DURATION
,
(
AVRational
){
1
,
1
})
>
=
0
)
STREAM_DURATION
,
(
AVRational
){
1
,
1
})
>
0
)
return
NULL
;
/* when we pass a frame to the encoder, it may keep a reference to it
...
...
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