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
Xiph.Org
aom-rav1e
Commits
e844624a
Commit
e844624a
authored
Feb 07, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Feb 07, 2014
Browse files
Merge "Fixing undefined behavior vp9_peek_si()."
parents
b94d618f
0f3cffa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/vp9_dx_iface.c
View file @
e844624a
...
...
@@ -148,7 +148,9 @@ static vpx_codec_err_t vp9_peek_si(const uint8_t *data, unsigned int data_sz,
{
struct
vp9_read_bit_buffer
rb
=
{
data
,
data
+
data_sz
,
0
,
NULL
,
NULL
};
const
int
frame_marker
=
vp9_rb_read_literal
(
&
rb
,
2
);
const
int
version
=
vp9_rb_read_bit
(
&
rb
)
|
(
vp9_rb_read_bit
(
&
rb
)
<<
1
);
const
int
version
=
vp9_rb_read_bit
(
&
rb
);
(
void
)
vp9_rb_read_bit
(
&
rb
);
// unused version bit
if
(
frame_marker
!=
VP9_FRAME_MARKER
)
return
VPX_CODEC_UNSUP_BITSTREAM
;
#if CONFIG_NON420
...
...
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