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
0b23452c
Commit
0b23452c
authored
Sep 02, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1: fix 2 uninitialized variable warnings
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f099fbf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ffv1.c
libavcodec/ffv1.c
+3
-2
No files found.
libavcodec/ffv1.c
View file @
0b23452c
...
@@ -597,7 +597,7 @@ static void encode_rgb_frame(FFV1Context *s, uint8_t *src[3], int w, int h, int
...
@@ -597,7 +597,7 @@ static void encode_rgb_frame(FFV1Context *s, uint8_t *src[3], int w, int h, int
sample
[
p
][
i
]
=
s
->
sample_buffer
+
p
*
ring_size
*
(
w
+
6
)
+
((
h
+
i
-
y
)
%
ring_size
)
*
(
w
+
6
)
+
3
;
sample
[
p
][
i
]
=
s
->
sample_buffer
+
p
*
ring_size
*
(
w
+
6
)
+
((
h
+
i
-
y
)
%
ring_size
)
*
(
w
+
6
)
+
3
;
for
(
x
=
0
;
x
<
w
;
x
++
){
for
(
x
=
0
;
x
<
w
;
x
++
){
int
b
,
g
,
r
,
a
;
int
b
,
g
,
r
,
a
v_uninit
(
a
)
;
if
(
lbd
){
if
(
lbd
){
unsigned
v
=
*
((
uint32_t
*
)(
src
[
0
]
+
x
*
4
+
stride
[
0
]
*
y
));
unsigned
v
=
*
((
uint32_t
*
)(
src
[
0
]
+
x
*
4
+
stride
[
0
]
*
y
));
b
=
v
&
0xFF
;
b
=
v
&
0xFF
;
...
@@ -1831,7 +1831,7 @@ static int read_extra_header(FFV1Context *f){
...
@@ -1831,7 +1831,7 @@ static int read_extra_header(FFV1Context *f){
static
int
read_header
(
FFV1Context
*
f
){
static
int
read_header
(
FFV1Context
*
f
){
uint8_t
state
[
CONTEXT_SIZE
];
uint8_t
state
[
CONTEXT_SIZE
];
int
i
,
j
,
context_count
;
int
i
,
j
,
context_count
=
-
1
;
//-1 to avoid warning
RangeCoder
*
const
c
=
&
f
->
slice_context
[
0
]
->
c
;
RangeCoder
*
const
c
=
&
f
->
slice_context
[
0
]
->
c
;
memset
(
state
,
128
,
sizeof
(
state
));
memset
(
state
,
128
,
sizeof
(
state
));
...
@@ -2002,6 +2002,7 @@ static int read_header(FFV1Context *f){
...
@@ -2002,6 +2002,7 @@ static int read_header(FFV1Context *f){
}
}
if
(
f
->
version
<=
2
){
if
(
f
->
version
<=
2
){
av_assert0
(
context_count
>=
0
);
if
(
p
->
context_count
<
context_count
){
if
(
p
->
context_count
<
context_count
){
av_freep
(
&
p
->
state
);
av_freep
(
&
p
->
state
);
av_freep
(
&
p
->
vlc_state
);
av_freep
(
&
p
->
vlc_state
);
...
...
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