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:
authorWan-Teh Chang <wtc@google.com>2022-02-25 22:03:12 +0300
committerJames Almer <jamrial@gmail.com>2022-02-25 22:55:09 +0300
commit54a4dbb573965b78714b14f7ac11547ebf70db7a (patch)
tree0b9cc3849f7229f9b33deaf45a1d907639174646
parent65953c862d392868d167ae6c4327d869da8a98ea (diff)
Remove redundant unref of c->in in close_internal
The dav1d_data_unref_internal(&c->in) call in close_internal() is redundant because dav1d_flush() already calls dav1d_data_unref_internal(&c->in). Note that when dav1d_open() calls close_internal() with flush=0 to free a newly constructed Dav1dContext, it is not necessary to unref c->in.
-rw-r--r--src/lib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib.c b/src/lib.c
index 010c77f..25ceb8e 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -649,7 +649,6 @@ static COLD void close_internal(Dav1dContext **const c_out, int flush) {
dav1d_free_aligned(f->lf.lr_line_buf);
}
dav1d_free_aligned(c->fc);
- dav1d_data_unref_internal(&c->in);
if (c->n_fc > 1 && c->frame_thread.out_delayed) {
for (unsigned n = 0; n < c->n_fc; n++)
if (c->frame_thread.out_delayed[n].p.data[0])