Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
12a073f7
Commit
12a073f7
authored
Jun 15, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/buffersrc: stop passing AV_NOPTS_VALUE on EOF
parent
4abf42ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
buffersrc.c
libavfilter/buffersrc.c
+4
-1
No files found.
libavfilter/buffersrc.c
View file @
12a073f7
...
...
@@ -61,6 +61,7 @@ typedef struct BufferSourceContext {
AVChannelLayout
ch_layout
;
int
eof
;
int64_t
last_pts
;
}
BufferSourceContext
;
#define CHECK_VIDEO_PARAM_CHANGE(s, c, width, height, format, pts)\
...
...
@@ -191,10 +192,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
s
->
nb_failed_requests
=
0
;
if
(
!
frame
)
return
av_buffersrc_close
(
ctx
,
AV_NOPTS_VALUE
,
flags
);
return
av_buffersrc_close
(
ctx
,
s
->
last_pts
,
flags
);
if
(
s
->
eof
)
return
AVERROR
(
EINVAL
);
s
->
last_pts
=
frame
->
pts
+
frame
->
duration
;
refcounted
=
!!
frame
->
buf
[
0
];
if
(
!
(
flags
&
AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT
))
{
...
...
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