Skip to content
GitLab
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
52a39f75
Commit
52a39f75
authored
Oct 15, 2013
by
Yaowu Xu
Browse files
Added trap for invalid key frame
Change-Id: I698e8df9b336d38bffe01e656acba00d4003695f
parent
ff1083c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decodframe.c
View file @
52a39f75
...
...
@@ -955,9 +955,15 @@ int vp9_decode_frame(VP9D_COMP *pbi, const uint8_t **p_data_end) {
YV12_BUFFER_CONFIG
*
new_fb
=
&
cm
->
yv12_fb
[
cm
->
new_fb_idx
];
if
(
!
first_partition_size
)
{
// showing a frame directly
*
p_data_end
=
data
+
1
;
return
0
;
if
(
!
keyframe
)
{
// showing a frame directly
*
p_data_end
=
data
+
1
;
return
0
;
}
else
{
vpx_internal_error
(
&
cm
->
error
,
VPX_CODEC_CORRUPT_FRAME
,
"Invalid key frame"
);
return
-
1
;
}
}
data
+=
vp9_rb_bytes_read
(
&
rb
);
xd
->
corrupted
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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