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
8043d8eb
Commit
8043d8eb
authored
Apr 06, 2017
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: send EOF pts to filters.
parent
5ba2aef6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ffmpeg.c
ffmpeg.c
+7
-3
No files found.
ffmpeg.c
View file @
8043d8eb
...
...
@@ -2223,14 +2223,14 @@ static int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame)
return
0
;
}
static
int
ifilter_send_eof
(
InputFilter
*
ifilter
)
static
int
ifilter_send_eof
(
InputFilter
*
ifilter
,
int64_t
pts
)
{
int
i
,
j
,
ret
;
ifilter
->
eof
=
1
;
if
(
ifilter
->
filter
)
{
ret
=
av_buffersrc_
add_frame_flags
(
ifilter
->
filter
,
NULL
,
AV_BUFFERSRC_FLAG_PUSH
);
ret
=
av_buffersrc_
close
(
ifilter
->
filter
,
pts
,
AV_BUFFERSRC_FLAG_PUSH
);
if
(
ret
<
0
)
return
ret
;
}
else
{
...
...
@@ -2581,8 +2581,12 @@ out:
static
int
send_filter_eof
(
InputStream
*
ist
)
{
int
i
,
ret
;
/* TODO keep pts also in stream time base to avoid converting back */
int64_t
pts
=
av_rescale_q_rnd
(
ist
->
pts
,
AV_TIME_BASE_Q
,
ist
->
st
->
time_base
,
AV_ROUND_NEAR_INF
|
AV_ROUND_PASS_MINMAX
);
for
(
i
=
0
;
i
<
ist
->
nb_filters
;
i
++
)
{
ret
=
ifilter_send_eof
(
ist
->
filters
[
i
]);
ret
=
ifilter_send_eof
(
ist
->
filters
[
i
]
,
pts
);
if
(
ret
<
0
)
return
ret
;
}
...
...
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