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
0cb6c0ec
Commit
0cb6c0ec
authored
Sep 01, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/scale: Pass src_range and dst_range to libswscale.
Fixes ticket #4812.
parent
555f5137
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
version.h
libavfilter/version.h
+1
-1
vf_scale.c
libavfilter/vf_scale.c
+6
-0
No files found.
libavfilter/version.h
View file @
0cb6c0ec
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define LIBAVFILTER_VERSION_MAJOR 5
#define LIBAVFILTER_VERSION_MAJOR 5
#define LIBAVFILTER_VERSION_MINOR 40
#define LIBAVFILTER_VERSION_MINOR 40
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_MICRO 10
1
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
libavfilter/vf_scale.c
View file @
0cb6c0ec
...
@@ -374,6 +374,12 @@ static int config_props(AVFilterLink *outlink)
...
@@ -374,6 +374,12 @@ static int config_props(AVFilterLink *outlink)
av_opt_set_int
(
*
s
,
"sws_flags"
,
scale
->
flags
,
0
);
av_opt_set_int
(
*
s
,
"sws_flags"
,
scale
->
flags
,
0
);
av_opt_set_int
(
*
s
,
"param0"
,
scale
->
param
[
0
],
0
);
av_opt_set_int
(
*
s
,
"param0"
,
scale
->
param
[
0
],
0
);
av_opt_set_int
(
*
s
,
"param1"
,
scale
->
param
[
1
],
0
);
av_opt_set_int
(
*
s
,
"param1"
,
scale
->
param
[
1
],
0
);
if
(
scale
->
in_range
!=
AVCOL_RANGE_UNSPECIFIED
)
av_opt_set_int
(
*
s
,
"src_range"
,
scale
->
in_range
==
AVCOL_RANGE_JPEG
,
0
);
if
(
scale
->
out_range
!=
AVCOL_RANGE_UNSPECIFIED
)
av_opt_set_int
(
*
s
,
"dst_range"
,
scale
->
out_range
==
AVCOL_RANGE_JPEG
,
0
);
if
(
scale
->
opts
)
{
if
(
scale
->
opts
)
{
AVDictionaryEntry
*
e
=
NULL
;
AVDictionaryEntry
*
e
=
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