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
41ac093f
Commit
41ac093f
authored
Oct 21, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: fix signed shift overflows in ff_yuv2rgb_c_init_tables()
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
5dd35b43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
yuv2rgb.c
libswscale/yuv2rgb.c
+2
-2
No files found.
libswscale/yuv2rgb.c
View file @
41ac093f
...
@@ -788,8 +788,8 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int
...
@@ -788,8 +788,8 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int
y_table32
=
c
->
yuvTable
;
y_table32
=
c
->
yuvTable
;
yb
=
-
(
384
<<
16
)
-
oy
;
yb
=
-
(
384
<<
16
)
-
oy
;
for
(
i
=
0
;
i
<
1024
;
i
++
)
{
for
(
i
=
0
;
i
<
1024
;
i
++
)
{
u
int8_t
yval
=
av_clip_uint8
((
yb
+
0x8000
)
>>
16
);
u
nsigned
yval
=
av_clip_uint8
((
yb
+
0x8000
)
>>
16
);
y_table32
[
i
]
=
(
yval
<<
rbase
)
+
(
needAlpha
?
0
:
(
255
<<
abase
));
y_table32
[
i
]
=
(
yval
<<
rbase
)
+
(
needAlpha
?
0
:
(
255
u
<<
abase
));
y_table32
[
i
+
1024
]
=
yval
<<
gbase
;
y_table32
[
i
+
1024
]
=
yval
<<
gbase
;
y_table32
[
i
+
2048
]
=
yval
<<
bbase
;
y_table32
[
i
+
2048
]
=
yval
<<
bbase
;
yb
+=
cy
;
yb
+=
cy
;
...
...
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