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
415ba93b
Commit
415ba93b
authored
Dec 27, 2016
by
Yaowu Xu
Browse files
Remove redundant code
Change-Id: I53d1383bfe70e0508b0c91d77931a21be2b91682
parent
049c64c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/decoder/decodeframe.c
View file @
415ba93b
...
...
@@ -3690,10 +3690,10 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
cm
->
show_existing_frame
=
aom_rb_read_bit
(
rb
);
if
(
cm
->
show_existing_frame
)
{
// Show an existing frame directly.
#if CONFIG_REFERENCE_BUFFER
// Show an existing frame directly.
const
int
existing_frame_idx
=
aom_rb_read_literal
(
rb
,
3
);
const
int
frame_to_show
=
cm
->
ref_frame_map
[
existing_frame_idx
];
#if CONFIG_REFERENCE_BUFFER
if
(
pbi
->
seq_params
.
frame_id_numbers_present_flag
)
{
int
frame_id_length
=
pbi
->
seq_params
.
frame_id_length_minus7
+
7
;
int
display_frame_id
=
aom_rb_read_literal
(
rb
,
frame_id_length
);
...
...
@@ -3704,8 +3704,6 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
aom_internal_error
(
&
cm
->
error
,
AOM_CODEC_CORRUPT_FRAME
,
"Reference buffer frame ID mismatch"
);
}
#else
const
int
frame_to_show
=
cm
->
ref_frame_map
[
aom_rb_read_literal
(
rb
,
3
)];
#endif
lock_buffer_pool
(
pool
);
if
(
frame_to_show
<
0
||
frame_bufs
[
frame_to_show
].
ref_count
<
1
)
{
...
...
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