diff options
author | James Almer <jamrial@gmail.com> | 2022-02-05 04:20:40 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-02-05 05:02:17 +0300 |
commit | 1f09a9119fb794ab41b1e527d848c2a210ca43d4 (patch) | |
tree | c04bb9f487f3c38dd4cb2412fe4e64a006664d3c | |
parent | f9844476372719fd1acc2a6dec51ca65fa74bbcf (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |