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
c21462d4
Commit
c21462d4
authored
Dec 08, 2019
by
Gyan Doshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/scale: store frame change eval
Better readability and allows reuse
parent
b55c6b8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
vf_scale.c
libavfilter/vf_scale.c
+8
-4
No files found.
libavfilter/vf_scale.c
View file @
c21462d4
...
...
@@ -398,15 +398,19 @@ static int scale_frame(AVFilterLink *link, AVFrame *in, AVFrame **frame_out)
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
link
->
format
);
char
buf
[
32
];
int
in_range
;
int
frame_changed
;
*
frame_out
=
NULL
;
if
(
in
->
colorspace
==
AVCOL_SPC_YCGCO
)
av_log
(
link
->
dst
,
AV_LOG_WARNING
,
"Detected unsupported YCgCo colorspace.
\n
"
);
if
(
in
->
width
!=
link
->
w
||
in
->
height
!=
link
->
h
||
in
->
format
!=
link
->
format
||
in
->
sample_aspect_ratio
.
den
!=
link
->
sample_aspect_ratio
.
den
||
in
->
sample_aspect_ratio
.
num
!=
link
->
sample_aspect_ratio
.
num
)
{
frame_changed
=
in
->
width
!=
link
->
w
||
in
->
height
!=
link
->
h
||
in
->
format
!=
link
->
format
||
in
->
sample_aspect_ratio
.
den
!=
link
->
sample_aspect_ratio
.
den
||
in
->
sample_aspect_ratio
.
num
!=
link
->
sample_aspect_ratio
.
num
;
if
(
frame_changed
)
{
int
ret
;
if
(
scale
->
eval_mode
==
EVAL_MODE_INIT
)
{
...
...
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