diff options
author | James Almer <jamrial@gmail.com> | 2022-02-03 23:21:21 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-02-03 23:21:21 +0300 |
commit | 0dc1d3539ceae7d5c2efc3163f7a14b83eea26fc (patch) | |
tree | fb1cfdd80e9e64810d4cd89f35961a881f9c0d4b /src/decode.c | |
parent | cce2b0564d3b0aa1a5e4ec0c561b6a1b8497cebb (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.c | 8 |
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); |