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
0a7379d9
Commit
0a7379d9
authored
Jan 31, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_yadif: make use of ctx pointer
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
9ca5b272
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
vf_yadif.c
libavfilter/vf_yadif.c
+8
-8
No files found.
libavfilter/vf_yadif.c
View file @
0a7379d9
...
@@ -389,7 +389,7 @@ static int request_frame(AVFilterLink *link)
...
@@ -389,7 +389,7 @@ static int request_frame(AVFilterLink *link)
if
(
yadif
->
eof
)
if
(
yadif
->
eof
)
return
AVERROR_EOF
;
return
AVERROR_EOF
;
ret
=
ff_request_frame
(
link
->
src
->
inputs
[
0
]);
ret
=
ff_request_frame
(
ctx
->
inputs
[
0
]);
if
(
ret
==
AVERROR_EOF
&&
yadif
->
cur
)
{
if
(
ret
==
AVERROR_EOF
&&
yadif
->
cur
)
{
AVFrame
*
next
=
av_frame_clone
(
yadif
->
next
);
AVFrame
*
next
=
av_frame_clone
(
yadif
->
next
);
...
@@ -399,7 +399,7 @@ static int request_frame(AVFilterLink *link)
...
@@ -399,7 +399,7 @@ static int request_frame(AVFilterLink *link)
next
->
pts
=
yadif
->
next
->
pts
*
2
-
yadif
->
cur
->
pts
;
next
->
pts
=
yadif
->
next
->
pts
*
2
-
yadif
->
cur
->
pts
;
filter_frame
(
link
->
src
->
inputs
[
0
],
next
);
filter_frame
(
ctx
->
inputs
[
0
],
next
);
yadif
->
eof
=
1
;
yadif
->
eof
=
1
;
}
else
if
(
ret
<
0
)
{
}
else
if
(
ret
<
0
)
{
return
ret
;
return
ret
;
...
@@ -469,15 +469,15 @@ static int query_formats(AVFilterContext *ctx)
...
@@ -469,15 +469,15 @@ static int query_formats(AVFilterContext *ctx)
static
int
config_props
(
AVFilterLink
*
link
)
static
int
config_props
(
AVFilterLink
*
link
)
{
{
AVFilterContext
*
ctx
=
link
->
src
;
AVFilterContext
*
ctx
=
link
->
src
;
YADIFContext
*
s
=
link
->
src
->
priv
;
YADIFContext
*
s
=
ctx
->
priv
;
link
->
time_base
.
num
=
link
->
src
->
inputs
[
0
]
->
time_base
.
num
;
link
->
time_base
.
num
=
ctx
->
inputs
[
0
]
->
time_base
.
num
;
link
->
time_base
.
den
=
link
->
src
->
inputs
[
0
]
->
time_base
.
den
*
2
;
link
->
time_base
.
den
=
ctx
->
inputs
[
0
]
->
time_base
.
den
*
2
;
link
->
w
=
link
->
src
->
inputs
[
0
]
->
w
;
link
->
w
=
ctx
->
inputs
[
0
]
->
w
;
link
->
h
=
link
->
src
->
inputs
[
0
]
->
h
;
link
->
h
=
ctx
->
inputs
[
0
]
->
h
;
if
(
s
->
mode
&
1
)
if
(
s
->
mode
&
1
)
link
->
frame_rate
=
av_mul_q
(
link
->
src
->
inputs
[
0
]
->
frame_rate
,
link
->
frame_rate
=
av_mul_q
(
ctx
->
inputs
[
0
]
->
frame_rate
,
(
AVRational
){
2
,
1
});
(
AVRational
){
2
,
1
});
if
(
link
->
w
<
3
||
link
->
h
<
3
)
{
if
(
link
->
w
<
3
||
link
->
h
<
3
)
{
...
...
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