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
f141ac4d
Commit
f141ac4d
authored
Oct 24, 2016
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_colorspace: don't spam console with warnings if range is unspecified.
parent
be885da3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
vf_colorspace.c
libavfilter/vf_colorspace.c
+10
-2
No files found.
libavfilter/vf_colorspace.c
View file @
f141ac4d
...
...
@@ -163,6 +163,8 @@ typedef struct ColorSpaceContext {
yuv2yuv_fn
yuv2yuv
;
double
yuv2rgb_dbl_coeffs
[
3
][
3
],
rgb2yuv_dbl_coeffs
[
3
][
3
];
int
in_y_rng
,
in_uv_rng
,
out_y_rng
,
out_uv_rng
;
int
did_warn_range
;
}
ColorSpaceContext
;
// FIXME deal with odd width/heights (or just forbid it)
...
...
@@ -523,8 +525,14 @@ static int get_range_off(AVFilterContext *ctx, int *off,
enum
AVColorRange
rng
,
int
depth
)
{
switch
(
rng
)
{
case
AVCOL_RANGE_UNSPECIFIED
:
av_log
(
ctx
,
AV_LOG_WARNING
,
"Input range not set, assuming tv/mpeg
\n
"
);
case
AVCOL_RANGE_UNSPECIFIED
:
{
ColorSpaceContext
*
s
=
ctx
->
priv
;
if
(
!
s
->
did_warn_range
)
{
av_log
(
ctx
,
AV_LOG_WARNING
,
"Input range not set, assuming tv/mpeg
\n
"
);
s
->
did_warn_range
=
1
;
}
}
// fall-through
case
AVCOL_RANGE_MPEG
:
*
off
=
16
<<
(
depth
-
8
);
...
...
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