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
10434746
Commit
10434746
authored
Aug 14, 2014
by
James Zern
Committed by
Gerrit Code Review
Aug 14, 2014
Browse files
Merge "vp9_copy_reference_dec: check ref frame index before use"
parents
80e55507
a07d09ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decoder.c
View file @
10434746
...
...
@@ -123,8 +123,12 @@ vpx_codec_err_t vp9_copy_reference_dec(VP9Decoder *pbi,
* later commit that adds VP9-specific controls for this functionality.
*/
if
(
ref_frame_flag
==
VP9_LAST_FLAG
)
{
const
YV12_BUFFER_CONFIG
*
const
cfg
=
&
cm
->
frame_bufs
[
cm
->
ref_frame_map
[
0
]].
buf
;
const
YV12_BUFFER_CONFIG
*
const
cfg
=
get_ref_frame
(
cm
,
0
);
if
(
cfg
==
NULL
)
{
vpx_internal_error
(
&
cm
->
error
,
VPX_CODEC_ERROR
,
"No 'last' reference frame"
);
return
VPX_CODEC_ERROR
;
}
if
(
!
equal_dimensions
(
cfg
,
sd
))
vpx_internal_error
(
&
cm
->
error
,
VPX_CODEC_ERROR
,
"Incorrect buffer dimensions"
);
...
...
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