diff options
author | Victorien Le Couviour--Tuffet <victorien@videolan.org> | 2021-09-07 21:59:23 +0300 |
---|---|---|
committer | Victorien Le Couviour--Tuffet <victorien@videolan.org> | 2021-09-09 16:42:04 +0300 |
commit | 833c818b87464baa547a2fc5a4f10e5dd5b2ea32 (patch) | |
tree | 5a4790a6a5d09331f576822666c3c3636ef54f37 /src/lib.c | |
parent | 976b9e496541df00c10f47d189b97d296ea49204 (diff) |
Minor consistency fixes, purely cosmetic
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -478,9 +478,9 @@ void dav1d_flush(Dav1dContext *const c) { if (c->n_tc > 1) { pthread_mutex_lock(&c->task_thread.lock); for (unsigned i = 0; i < c->n_tc; i++) { - Dav1dTaskContext *const pf = &c->tc[i]; - while (!pf->task_thread.flushed) { - pthread_cond_wait(&pf->task_thread.td.cond, &c->task_thread.lock); + Dav1dTaskContext *const tc = &c->tc[i]; + while (!tc->task_thread.flushed) { + pthread_cond_wait(&tc->task_thread.td.cond, &c->task_thread.lock); } } for (unsigned i = 0; i < c->n_fc; i++) { @@ -490,7 +490,7 @@ void dav1d_flush(Dav1dContext *const c) { } atomic_init(&c->task_thread.first, 0); c->task_thread.cur = c->n_fc; - atomic_store(&c->task_thread.reset_task_cur, INT_MAX); + atomic_store(&c->task_thread.reset_task_cur, UINT_MAX); atomic_store(&c->task_thread.cond_signaled, 0); pthread_mutex_unlock(&c->task_thread.lock); } |