Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-02-03 23:21:21 +0300
committerJames Almer <jamrial@gmail.com>2022-02-03 23:21:21 +0300
commit0dc1d3539ceae7d5c2efc3163f7a14b83eea26fc (patch)
treefb1cfdd80e9e64810d4cd89f35961a881f9c0d4b /src/decode.c
parentcce2b0564d3b0aa1a5e4ec0c561b6a1b8497cebb (diff)
add a picture flag to signal that a new temporal delimiter unit was seen
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decode.c b/src/decode.c
index 4ec57a9..cec91e9 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -3506,7 +3506,7 @@ int dav1d_submit_frame(Dav1dContext *const c) {
if ((out_delayed->visible || c->output_invisible_frames) &&
progress != FRAME_ERROR)
{
- dav1d_picture_ref(&c->out, &out_delayed->p);
+ dav1d_thread_picture_ref(&c->out, out_delayed);
c->event_flags |= dav1d_picture_get_event_flags(out_delayed);
}
dav1d_thread_picture_unref(out_delayed);
@@ -3680,7 +3680,7 @@ int dav1d_submit_frame(Dav1dContext *const c) {
// move f->cur into output queue
if (c->n_fc == 1) {
if (f->frame_hdr->show_frame || c->output_invisible_frames) {
- dav1d_picture_ref(&c->out, &f->sr_cur.p);
+ dav1d_thread_picture_ref(&c->out, &f->sr_cur);
c->event_flags |= dav1d_picture_get_event_flags(&f->sr_cur);
}
} else {
@@ -3832,7 +3832,7 @@ int dav1d_submit_frame(Dav1dContext *const c) {
if (c->n_fc == 1) {
if ((res = dav1d_decode_frame(f)) < 0) {
- dav1d_picture_unref_internal(&c->out);
+ dav1d_thread_picture_unref(&c->out);
for (int i = 0; i < 8; i++) {
if (refresh_frame_flags & (1 << i)) {
if (c->refs[i].p.p.data[0])
@@ -3861,7 +3861,7 @@ error:
dav1d_ref_dec(&f->ref_mvs_ref[i]);
}
if (c->n_fc == 1)
- dav1d_picture_unref_internal(&c->out);
+ dav1d_thread_picture_unref(&c->out);
else
dav1d_thread_picture_unref(out_delayed);
dav1d_picture_unref_internal(&f->cur);