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
81cc7d0b
Commit
81cc7d0b
authored
Jun 30, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: fix another yuv range conversion overflow in 16bit scaling.
parent
c31bc537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
swscale.c
libswscale/swscale.c
+1
-1
No files found.
libswscale/swscale.c
View file @
81cc7d0b
...
@@ -2001,7 +2001,7 @@ static void lumRangeToJpeg16_c(int16_t *_dst, int width)
...
@@ -2001,7 +2001,7 @@ static void lumRangeToJpeg16_c(int16_t *_dst, int width)
int
i
;
int
i
;
int32_t
*
dst
=
(
int32_t
*
)
_dst
;
int32_t
*
dst
=
(
int32_t
*
)
_dst
;
for
(
i
=
0
;
i
<
width
;
i
++
)
for
(
i
=
0
;
i
<
width
;
i
++
)
dst
[
i
]
=
(
FFMIN
(
dst
[
i
],
30189
<<
4
)
*
19077
-
(
39057361
<<
4
))
>>
14
;
dst
[
i
]
=
(
FFMIN
(
dst
[
i
],
30189
<<
4
)
*
4769
-
(
39057361
<<
2
))
>>
12
;
}
}
static
void
lumRangeFromJpeg16_c
(
int16_t
*
_dst
,
int
width
)
static
void
lumRangeFromJpeg16_c
(
int16_t
*
_dst
,
int
width
)
{
{
...
...
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