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
8f21cfc6
Commit
8f21cfc6
authored
Nov 28, 2012
by
Anton Khirnov
Committed by
Michael Niedermayer
Nov 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_aspect: switch to filter_frame
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
aa61728d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
vf_aspect.c
libavfilter/vf_aspect.c
+5
-8
No files found.
libavfilter/vf_aspect.c
View file @
8f21cfc6
...
...
@@ -80,13 +80,12 @@ static av_cold int init(AVFilterContext *ctx, const char *args, const AVClass *c
return
0
;
}
static
int
start_frame
(
AVFilterLink
*
link
,
AVFilterBufferRef
*
picref
)
static
int
filter_frame
(
AVFilterLink
*
link
,
AVFilterBufferRef
*
frame
)
{
AspectContext
*
aspect
=
link
->
dst
->
priv
;
picref
->
video
->
sample_aspect_ratio
=
aspect
->
ratio
;
link
->
cur_buf
=
NULL
;
return
ff_start_frame
(
link
->
dst
->
outputs
[
0
],
picref
);
frame
->
video
->
sample_aspect_ratio
=
aspect
->
ratio
;
return
ff_filter_frame
(
link
->
dst
->
outputs
[
0
],
frame
);
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
...
...
@@ -129,8 +128,7 @@ static const AVFilterPad avfilter_vf_setdar_inputs[] = {
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
setdar_config_props
,
.
get_video_buffer
=
ff_null_get_video_buffer
,
.
start_frame
=
start_frame
,
.
end_frame
=
ff_null_end_frame
.
filter_frame
=
filter_frame
,
},
{
NULL
}
};
...
...
@@ -185,8 +183,7 @@ static const AVFilterPad avfilter_vf_setsar_inputs[] = {
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
setsar_config_props
,
.
get_video_buffer
=
ff_null_get_video_buffer
,
.
start_frame
=
start_frame
,
.
end_frame
=
ff_null_end_frame
.
filter_frame
=
filter_frame
,
},
{
NULL
}
};
...
...
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