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
92255132
Commit
92255132
authored
May 15, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_scale: support dynamically changing input parameters.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4b5ff9b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
vf_scale.c
libavfilter/vf_scale.c
+17
-0
No files found.
libavfilter/vf_scale.c
View file @
92255132
...
...
@@ -275,6 +275,23 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
AVFilterLink
*
outlink
=
link
->
dst
->
outputs
[
0
];
AVFilterBufferRef
*
outpicref
;
if
(
picref
->
video
->
w
!=
link
->
w
||
picref
->
video
->
h
!=
link
->
h
||
picref
->
format
!=
link
->
format
)
{
AVFilterLink
*
out_link
;
int
ret
;
snprintf
(
scale
->
w_expr
,
sizeof
(
scale
->
w_expr
)
-
1
,
"%d"
,
outlink
->
w
);
snprintf
(
scale
->
h_expr
,
sizeof
(
scale
->
h_expr
)
-
1
,
"%d"
,
outlink
->
h
);
link
->
dst
->
inputs
[
0
]
->
format
=
picref
->
format
;
link
->
dst
->
inputs
[
0
]
->
w
=
picref
->
video
->
w
;
link
->
dst
->
inputs
[
0
]
->
h
=
picref
->
video
->
h
;
if
((
ret
=
config_props
(
outlink
))
<
0
)
av_assert0
(
0
);
//what to do here ?
}
if
(
!
scale
->
sws
)
{
avfilter_start_frame
(
outlink
,
avfilter_ref_buffer
(
picref
,
~
0
));
return
;
...
...
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