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-05 04:20:40 +0300
committerJames Almer <jamrial@gmail.com>2022-02-05 05:02:17 +0300
commit1f09a9119fb794ab41b1e527d848c2a210ca43d4 (patch)
treec04bb9f487f3c38dd4cb2412fe4e64a006664d3c
parentf9844476372719fd1acc2a6dec51ca65fa74bbcf (diff)
lib: fix signaling frames ready to be returned when no frame delay is expected
Prevents dav1d_get_picture() from returning EAGAIN when no frame delay was requested (threads=1, or threads > 1 and max_frame_delay=1). Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--src/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.c b/src/lib.c
index 3a255cd..6b50a53 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -457,7 +457,7 @@ int dav1d_get_picture(Dav1dContext *const c, Dav1dPicture *const out)
if (res < 0)
return res;
- if (output_picture_ready(c, drain && c->n_fc == 1))
+ if (output_picture_ready(c, c->n_fc == 1))
return output_image(c, out);
if (c->n_fc > 1 && drain)