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
95ce0ddc
Commit
95ce0ddc
authored
Mar 28, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/fade: fix black level for non studio-level pixel formats
Fix trac ticket #1139, regression introduced in
8c1fb50d
.
parent
1a06d6dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_fade.c
libavfilter/vf_fade.c
+2
-2
No files found.
libavfilter/vf_fade.c
View file @
95ce0ddc
...
...
@@ -192,9 +192,9 @@ static int config_props(AVFilterLink *inlink)
fade
->
alpha
=
fade
->
alpha
?
ff_fmt_is_in
(
inlink
->
format
,
alpha_pix_fmts
)
:
0
;
fade
->
is_packed_rgb
=
ff_fill_rgba_map
(
fade
->
rgba_map
,
inlink
->
format
)
>=
0
;
/*
CCIR601/709 black level unless input is RGB or has alpha
*/
/*
use CCIR601/709 black level for studio-level pixel non-alpha components
*/
fade
->
black_level
=
ff_fmt_is_in
(
inlink
->
format
,
studio_level_pix_fmts
)
||
fade
->
alpha
?
0
:
16
;
ff_fmt_is_in
(
inlink
->
format
,
studio_level_pix_fmts
)
&&
!
fade
->
alpha
?
16
:
0
;
/* 32768 = 1 << 15, it is an integer representation
* of 0.5 and is for rounding. */
fade
->
black_level_scaled
=
(
fade
->
black_level
<<
16
)
+
32768
;
...
...
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