Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
8431e768
Commit
8431e768
authored
Mar 17, 2011
by
John Koleszar
Committed by
Code Review
Mar 17, 2011
Browse files
Merge "Fix "used uninitialized" warning in vp8_pack_bitstream()"
parents
de50520a
9c836daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp8/encoder/bitstream.c
View file @
8431e768
...
...
@@ -1366,6 +1366,7 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
oh
.
show_frame
=
(
int
)
pc
->
show_frame
;
oh
.
type
=
(
int
)
pc
->
frame_type
;
oh
.
version
=
pc
->
version
;
oh
.
first_partition_length_in_bytes
=
0
;
mb_feature_data_bits
=
vp8_mb_feature_data_bits
;
cx_data
+=
3
;
...
...
@@ -1634,6 +1635,21 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
vp8_stop_encode
(
bc
);
oh
.
first_partition_length_in_bytes
=
cpi
->
bc
.
pos
;
/* update frame tag */
{
int
v
=
(
oh
.
first_partition_length_in_bytes
<<
5
)
|
(
oh
.
show_frame
<<
4
)
|
(
oh
.
version
<<
1
)
|
oh
.
type
;
dest
[
0
]
=
v
;
dest
[
1
]
=
v
>>
8
;
dest
[
2
]
=
v
>>
16
;
}
*
size
=
VP8_HEADER_SIZE
+
extra_bytes_packed
+
cpi
->
bc
.
pos
;
if
(
pc
->
multi_token_partition
!=
ONE_PARTITION
)
{
...
...
@@ -1643,9 +1659,7 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
pack_tokens_into_partitions
(
cpi
,
cx_data
+
bc
->
pos
,
num_part
,
&
asize
);
oh
.
first_partition_length_in_bytes
=
cpi
->
bc
.
pos
;
*
size
=
cpi
->
bc
.
pos
+
VP8_HEADER_SIZE
+
asize
+
extra_bytes_packed
;
*
size
+=
asize
;
}
else
{
...
...
@@ -1659,19 +1673,8 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
pack_tokens
(
&
cpi
->
bc2
,
cpi
->
tok
,
cpi
->
tok_count
);
vp8_stop_encode
(
&
cpi
->
bc2
);
oh
.
first_partition_length_in_bytes
=
cpi
->
bc
.
pos
;
*
size
=
cpi
->
bc2
.
pos
+
cpi
->
bc
.
pos
+
VP8_HEADER_SIZE
+
extra_bytes_packed
;
}
{
int
v
=
(
oh
.
first_partition_length_in_bytes
<<
5
)
|
(
oh
.
show_frame
<<
4
)
|
(
oh
.
version
<<
1
)
|
oh
.
type
;
dest
[
0
]
=
v
;
dest
[
1
]
=
v
>>
8
;
dest
[
2
]
=
v
>>
16
;
*
size
+=
cpi
->
bc2
.
pos
;
}
}
...
...
Write
Preview
Supports
Markdown
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