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
2bdda9a1
Commit
2bdda9a1
authored
Dec 10, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ffv1enc: fix use of uninitalized variable in choose_rct_params()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2836ef68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ffv1enc.c
libavcodec/ffv1enc.c
+7
-6
No files found.
libavcodec/ffv1enc.c
View file @
2bdda9a1
...
...
@@ -1018,6 +1018,7 @@ static void choose_rct_params(FFV1Context *fs, uint8_t *src[3], const int stride
for
(
x
=
0
;
x
<
w
;
x
++
)
{
int
b
,
g
,
r
;
int
ab
,
ag
,
ar
;
if
(
lbd
)
{
unsigned
v
=
*
((
uint32_t
*
)(
src
[
0
]
+
x
*
4
+
stride
[
0
]
*
y
));
b
=
v
&
0xFF
;
...
...
@@ -1029,10 +1030,10 @@ static void choose_rct_params(FFV1Context *fs, uint8_t *src[3], const int stride
r
=
*
((
uint16_t
*
)(
src
[
2
]
+
x
*
2
+
stride
[
2
]
*
y
));
}
ar
=
r
-
lastr
;
ag
=
g
-
lastg
;
ab
=
b
-
lastb
;
if
(
x
&&
y
)
{
int
ar
=
r
-
lastr
;
int
ag
=
g
-
lastg
;
int
ab
=
b
-
lastb
;
int
bg
=
ag
-
sample
[
0
][
x
];
int
bb
=
ab
-
sample
[
1
][
x
];
int
br
=
ar
-
sample
[
2
][
x
];
...
...
@@ -1044,10 +1045,10 @@ static void choose_rct_params(FFV1Context *fs, uint8_t *src[3], const int stride
stat
[
1
]
+=
FFABS
(
bg
+
((
br
+
bb
)
>>
2
));
stat
[
2
]
+=
FFABS
(
bg
+
((
br
+
bb
)
>>
1
));
sample
[
0
][
x
]
=
ag
;
sample
[
1
][
x
]
=
ab
;
sample
[
2
][
x
]
=
ar
;
}
sample
[
0
][
x
]
=
ag
;
sample
[
1
][
x
]
=
ab
;
sample
[
2
][
x
]
=
ar
;
lastr
=
r
;
lastg
=
g
;
...
...
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