Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
56fcf7cc
Commit
56fcf7cc
authored
Jan 02, 2018
by
Sebastien Alaiwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid useless local variables
Change-Id: I3482355d2185fce56d4cb574ab271213df00164b
parent
209649ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
av1/decoder/decoder.c
av1/decoder/decoder.c
+4
-7
No files found.
av1/decoder/decoder.c
View file @
56fcf7cc
...
...
@@ -268,7 +268,6 @@ int av1_receive_compressed_data(AV1Decoder *pbi, size_t size,
BufferPool
*
volatile
const
pool
=
cm
->
buffer_pool
;
RefCntBuffer
*
volatile
const
frame_bufs
=
cm
->
buffer_pool
->
frame_bufs
;
const
uint8_t
*
source
=
*
psource
;
int
retcode
=
0
;
cm
->
error
.
error_code
=
AOM_CODEC_OK
;
if
(
size
==
0
)
{
...
...
@@ -446,23 +445,21 @@ int av1_receive_compressed_data(AV1Decoder *pbi, size_t size,
}
cm
->
error
.
setjmp
=
0
;
return
retcode
;
return
0
;
}
int
av1_get_raw_frame
(
AV1Decoder
*
pbi
,
YV12_BUFFER_CONFIG
*
sd
)
{
AV1_COMMON
*
const
cm
=
&
pbi
->
common
;
int
ret
=
-
1
;
if
(
pbi
->
ready_for_new_data
==
1
)
return
ret
;
if
(
pbi
->
ready_for_new_data
==
1
)
return
-
1
;
pbi
->
ready_for_new_data
=
1
;
/* no raw frame to show!!! */
if
(
!
cm
->
show_frame
)
return
ret
;
if
(
!
cm
->
show_frame
)
return
-
1
;
*
sd
=
*
cm
->
frame_to_show
;
ret
=
0
;
aom_clear_system_state
();
return
ret
;
return
0
;
}
int
av1_get_frame_to_show
(
AV1Decoder
*
pbi
,
YV12_BUFFER_CONFIG
*
frame
)
{
...
...
Write
Preview
Markdown
is supported
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