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
394a0267
Commit
394a0267
authored
May 14, 2012
by
Robert Nagy
Committed by
Anton Khirnov
May 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yadif: Flush filter on eof.
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
7dd56d41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
vf_yadif.c
libavfilter/vf_yadif.c
+15
-1
No files found.
libavfilter/vf_yadif.c
View file @
394a0267
...
...
@@ -61,6 +61,7 @@ typedef struct {
int
w
,
int
prefs
,
int
mrefs
,
int
parity
,
int
mode
);
const
AVPixFmtDescriptor
*
csp
;
int
eof
;
}
YADIFContext
;
#define CHECK(j)\
...
...
@@ -304,8 +305,21 @@ static int request_frame(AVFilterLink *link)
do
{
int
ret
;
if
((
ret
=
avfilter_request_frame
(
link
->
src
->
inputs
[
0
])))
if
(
yadif
->
eof
)
return
AVERROR_EOF
;
ret
=
avfilter_request_frame
(
link
->
src
->
inputs
[
0
]);
if
(
ret
==
AVERROR_EOF
&&
yadif
->
next
)
{
AVFilterBufferRef
*
next
=
avfilter_ref_buffer
(
yadif
->
next
,
AV_PERM_READ
);
next
->
pts
=
yadif
->
next
->
pts
*
2
-
yadif
->
cur
->
pts
;
start_frame
(
link
->
src
->
inputs
[
0
],
next
);
end_frame
(
link
->
src
->
inputs
[
0
]);
yadif
->
eof
=
1
;
}
else
if
(
ret
<
0
)
{
return
ret
;
}
}
while
(
!
yadif
->
cur
);
return
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