Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
9062b92b
Commit
9062b92b
authored
Jun 06, 2013
by
Jim Bankoski
Committed by
Gerrit Code Review
Jun 06, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "fix vp9_wb_write_bit uninitialized variable" into experimental
parents
395ae7ab
c003b97d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
vp9/encoder/vp9_write_bit_buffer.h
vp9/encoder/vp9_write_bit_buffer.h
+6
-2
No files found.
vp9/encoder/vp9_write_bit_buffer.h
View file @
9062b92b
...
...
@@ -26,8 +26,12 @@ static void vp9_wb_write_bit(struct vp9_write_bit_buffer *wb, int bit) {
const
int
off
=
wb
->
bit_offset
;
const
int
p
=
off
/
CHAR_BIT
;
const
int
q
=
CHAR_BIT
-
1
-
off
%
CHAR_BIT
;
wb
->
bit_buffer
[
p
]
&=
~
(
1
<<
q
);
wb
->
bit_buffer
[
p
]
|=
bit
<<
q
;
if
(
q
==
CHAR_BIT
-
1
)
{
wb
->
bit_buffer
[
p
]
=
bit
<<
q
;
}
else
{
wb
->
bit_buffer
[
p
]
&=
~
(
1
<<
q
);
wb
->
bit_buffer
[
p
]
|=
bit
<<
q
;
}
wb
->
bit_offset
=
off
+
1
;
}
...
...
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