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
b671491a
Commit
b671491a
authored
Oct 17, 2014
by
hkuang
Committed by
Gerrit Code Review
Oct 17, 2014
Browse files
Merge "Correct the logic of ready_for_new_data."
parents
0615a196
e3bf55de
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decoder.c
View file @
b671491a
...
...
@@ -232,6 +232,8 @@ int vp9_receive_compressed_data(VP9Decoder *pbi,
cm
->
frame_refs
[
0
].
buf
->
corrupted
=
1
;
}
pbi
->
ready_for_new_data
=
0
;
// Check if the previous frame was a frame without any references to it.
if
(
cm
->
new_fb_idx
>=
0
&&
cm
->
frame_bufs
[
cm
->
new_fb_idx
].
ref_count
==
0
)
cm
->
release_fb_cb
(
cm
->
cb_priv
,
...
...
@@ -279,8 +281,6 @@ int vp9_receive_compressed_data(VP9Decoder *pbi,
cm
->
current_video_frame
++
;
}
pbi
->
ready_for_new_data
=
0
;
cm
->
error
.
setjmp
=
0
;
return
retcode
;
}
...
...
@@ -296,12 +296,12 @@ int vp9_get_raw_frame(VP9Decoder *pbi, YV12_BUFFER_CONFIG *sd,
if
(
pbi
->
ready_for_new_data
==
1
)
return
ret
;
pbi
->
ready_for_new_data
=
1
;
/* no raw frame to show!!! */
if
(
!
cm
->
show_frame
)
return
ret
;
pbi
->
ready_for_new_data
=
1
;
#if CONFIG_VP9_POSTPROC
if
(
!
cm
->
show_existing_frame
)
{
ret
=
vp9_post_proc_frame
(
cm
,
sd
,
flags
);
...
...
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