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
8ef453ff
Commit
8ef453ff
authored
May 09, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws/output: silence warnings about uninitialized use of variables
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
13cb6ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
output.c
libswscale/output.c
+4
-4
No files found.
libswscale/output.c
View file @
8ef453ff
...
...
@@ -1323,6 +1323,7 @@ yuv2rgb_full_X_c_template(SwsContext *c, const int16_t *lumFilter,
int
i
;
int
step
=
(
target
==
AV_PIX_FMT_RGB24
||
target
==
AV_PIX_FMT_BGR24
)
?
3
:
4
;
int
err
[
4
]
=
{
0
};
int
A
=
0
;
//init to silence warning
if
(
target
==
AV_PIX_FMT_BGR4_BYTE
||
target
==
AV_PIX_FMT_RGB4_BYTE
||
target
==
AV_PIX_FMT_BGR8
||
target
==
AV_PIX_FMT_RGB8
)
...
...
@@ -1333,7 +1334,6 @@ yuv2rgb_full_X_c_template(SwsContext *c, const int16_t *lumFilter,
int
Y
=
1
<<
9
;
int
U
=
(
1
<<
9
)
-
(
128
<<
19
);
int
V
=
(
1
<<
9
)
-
(
128
<<
19
);
int
A
;
for
(
j
=
0
;
j
<
lumFilterSize
;
j
++
)
{
Y
+=
lumSrc
[
j
][
i
]
*
lumFilter
[
j
];
...
...
@@ -1379,6 +1379,7 @@ yuv2rgb_full_2_c_template(SwsContext *c, const int16_t *buf[2],
int
i
;
int
step
=
(
target
==
AV_PIX_FMT_RGB24
||
target
==
AV_PIX_FMT_BGR24
)
?
3
:
4
;
int
err
[
4
]
=
{
0
};
int
A
=
0
;
// init to silcene warning
if
(
target
==
AV_PIX_FMT_BGR4_BYTE
||
target
==
AV_PIX_FMT_RGB4_BYTE
||
target
==
AV_PIX_FMT_BGR8
||
target
==
AV_PIX_FMT_RGB8
)
...
...
@@ -1388,7 +1389,6 @@ yuv2rgb_full_2_c_template(SwsContext *c, const int16_t *buf[2],
int
Y
=
(
buf0
[
i
]
*
yalpha1
+
buf1
[
i
]
*
yalpha
)
>>
10
;
//FIXME rounding
int
U
=
(
ubuf0
[
i
]
*
uvalpha1
+
ubuf1
[
i
]
*
uvalpha
-
(
128
<<
19
))
>>
10
;
int
V
=
(
vbuf0
[
i
]
*
uvalpha1
+
vbuf1
[
i
]
*
uvalpha
-
(
128
<<
19
))
>>
10
;
int
A
;
if
(
hasAlpha
)
{
A
=
(
abuf0
[
i
]
*
yalpha1
+
abuf1
[
i
]
*
yalpha
+
(
1
<<
18
))
>>
19
;
...
...
@@ -1421,11 +1421,11 @@ yuv2rgb_full_1_c_template(SwsContext *c, const int16_t *buf0,
step
=
1
;
if
(
uvalpha
<
2048
)
{
int
A
=
0
;
//init to silence warning
for
(
i
=
0
;
i
<
dstW
;
i
++
)
{
int
Y
=
buf0
[
i
]
<<
2
;
int
U
=
(
ubuf0
[
i
]
-
(
128
<<
7
))
<<
2
;
int
V
=
(
vbuf0
[
i
]
-
(
128
<<
7
))
<<
2
;
int
A
;
if
(
hasAlpha
)
{
A
=
(
abuf0
[
i
]
+
64
)
>>
7
;
...
...
@@ -1438,11 +1438,11 @@ yuv2rgb_full_1_c_template(SwsContext *c, const int16_t *buf0,
}
}
else
{
const
int16_t
*
ubuf1
=
ubuf
[
1
],
*
vbuf1
=
vbuf
[
1
];
int
A
=
0
;
//init to silence warning
for
(
i
=
0
;
i
<
dstW
;
i
++
)
{
int
Y
=
buf0
[
i
]
<<
2
;
int
U
=
(
ubuf0
[
i
]
+
ubuf1
[
i
]
-
(
128
<<
8
))
<<
1
;
int
V
=
(
vbuf0
[
i
]
+
vbuf1
[
i
]
-
(
128
<<
8
))
<<
1
;
int
A
;
if
(
hasAlpha
)
{
A
=
(
abuf0
[
i
]
+
64
)
>>
7
;
...
...
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