diff options
author | Steve Lhomme <robux4@videolabs.io> | 2022-03-29 14:51:54 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-04-08 05:40:42 +0300 |
commit | adc01378b03e6f47536a2a3215ce717628516455 (patch) | |
tree | 485cf4c2943dfcbba8190f4381ae4a2ae1eafa96 | |
parent | 9bd8350ace32aef4f808770b97459747fd217b69 (diff) |
remove multipass wait from dav1d_decode_frame
There's an assert on n_fc == 1 at the beginning of the function. There cannot
be a second pass used here.
Signed-off-by: Steve Lhomme <robux4@videolabs.io>
-rw-r--r-- | src/decode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c index 13d5706..b44f157 100644 --- a/src/decode.c +++ b/src/decode.c @@ -3443,9 +3443,7 @@ int dav1d_decode_frame(Dav1dFrameContext *const f) { pthread_mutex_lock(&f->task_thread.ttd->lock); res = dav1d_task_create_tile_sbrow(f, 0, 1); if (!res) { - const int uses_2pass = f->c->n_fc > 1; while (!f->task_thread.done[0] || - (uses_2pass && !f->task_thread.done[1]) || f->task_thread.task_counter > 0) { pthread_cond_wait(&f->task_thread.cond, |