Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
394a0267
Commit
394a0267
authored
May 14, 2012
by
Robert Nagy
Committed by
Anton Khirnov
May 14, 2012
Browse files
yadif: Flush filter on eof.
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
7dd56d41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
libavfilter/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