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
b3ea7662
Commit
b3ea7662
authored
Mar 18, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_aspect: use the name 's' for the pointer to the private context
This is shorter and consistent across filters.
parent
2832ea26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
vf_aspect.c
libavfilter/vf_aspect.c
+12
-12
No files found.
libavfilter/vf_aspect.c
View file @
b3ea7662
...
...
@@ -58,9 +58,9 @@ static av_cold int init(AVFilterContext *ctx)
static
int
filter_frame
(
AVFilterLink
*
link
,
AVFrame
*
frame
)
{
AspectContext
*
aspect
=
link
->
dst
->
priv
;
AspectContext
*
s
=
link
->
dst
->
priv
;
frame
->
sample_aspect_ratio
=
aspect
->
aspect
;
frame
->
sample_aspect_ratio
=
s
->
aspect
;
return
ff_filter_frame
(
link
->
dst
->
outputs
[
0
],
frame
);
}
...
...
@@ -71,14 +71,14 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
/* for setdar filter, convert from frame aspect ratio to pixel aspect ratio */
static
int
setdar_config_props
(
AVFilterLink
*
inlink
)
{
AspectContext
*
aspect
=
inlink
->
dst
->
priv
;
AVRational
dar
=
aspect
->
aspect
;
if
(
aspect
->
aspect
.
num
&&
aspect
->
aspect
.
den
)
{
av_reduce
(
&
aspect
->
aspect
.
num
,
&
aspect
->
aspect
.
den
,
aspect
->
aspect
.
num
*
inlink
->
h
,
aspect
->
aspect
.
den
*
inlink
->
w
,
100
);
inlink
->
sample_aspect_ratio
=
aspect
->
aspect
;
AspectContext
*
s
=
inlink
->
dst
->
priv
;
AVRational
dar
=
s
->
aspect
;
if
(
s
->
aspect
.
num
&&
s
->
aspect
.
den
)
{
av_reduce
(
&
s
->
aspect
.
num
,
&
s
->
aspect
.
den
,
s
->
aspect
.
num
*
inlink
->
h
,
s
->
aspect
.
den
*
inlink
->
w
,
100
);
inlink
->
sample_aspect_ratio
=
s
->
aspect
;
}
else
{
inlink
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
dar
=
(
AVRational
){
inlink
->
w
,
inlink
->
h
};
...
...
@@ -147,9 +147,9 @@ AVFilter avfilter_vf_setdar = {
/* for setdar filter, convert from frame aspect ratio to pixel aspect ratio */
static
int
setsar_config_props
(
AVFilterLink
*
inlink
)
{
AspectContext
*
aspect
=
inlink
->
dst
->
priv
;
AspectContext
*
s
=
inlink
->
dst
->
priv
;
inlink
->
sample_aspect_ratio
=
aspect
->
aspect
;
inlink
->
sample_aspect_ratio
=
s
->
aspect
;
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