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
e8dcadc2
Commit
e8dcadc2
authored
Jun 20, 2014
by
Jim Bankoski
Committed by
Gerrit Code Review
Jun 20, 2014
Browse files
Merge "fix peek_si to enable 1 byte show existing frames."
parents
94e11550
815485a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/vp9_dx_iface.c
View file @
e8dcadc2
...
...
@@ -112,9 +112,6 @@ static vpx_codec_err_t decoder_peek_si_internal(const uint8_t *data,
void
*
decrypt_state
)
{
uint8_t
clear_buffer
[
9
];
if
(
data_sz
<=
8
)
return
VPX_CODEC_UNSUP_BITSTREAM
;
if
(
data
+
data_sz
<=
data
)
return
VPX_CODEC_INVALID_PARAM
;
...
...
@@ -135,12 +132,16 @@ static vpx_codec_err_t decoder_peek_si_internal(const uint8_t *data,
if
(
frame_marker
!=
VP9_FRAME_MARKER
)
return
VPX_CODEC_UNSUP_BITSTREAM
;
if
(
version
>
1
)
return
VPX_CODEC_UNSUP_BITSTREAM
;
if
(
vp9_rb_read_bit
(
&
rb
))
{
// show an existing frame
return
VPX_CODEC_OK
;
}
if
(
data_sz
<=
8
)
return
VPX_CODEC_UNSUP_BITSTREAM
;
si
->
is_kf
=
!
vp9_rb_read_bit
(
&
rb
);
if
(
si
->
is_kf
)
{
const
int
sRGB
=
7
;
...
...
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