[FFmpeg-cvslog] avcodec/libdav1d: let libdav1d choose optimal max frame delay
James Almer
git at videolan.org
Sat Nov 6 02:40:07 EET 2021
ffmpeg | branch: release/4.4 | James Almer <jamrial at gmail.com> | Tue Sep 21 15:07:20 2021 -0300| [cc33e73618a981de7fd96385ecb34719de031f16] | committer: James Almer
avcodec/libdav1d: let libdav1d choose optimal max frame delay
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 9a7fe439d969485de698569faa0b42e948cbd753)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc33e73618a981de7fd96385ecb34719de031f16
---
libavcodec/libdav1d.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index ac9214c830..305e04cef7 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -157,7 +157,7 @@ static av_cold int libdav1d_init(AVCodecContext *c)
s.n_threads = FFMAX(dav1d->frame_threads, dav1d->tile_threads);
else
s.n_threads = FFMIN(threads, DAV1D_MAX_THREADS);
- s.max_frame_delay = (c->flags & AV_CODEC_FLAG_LOW_DELAY) ? 1 : s.n_threads;
+ s.max_frame_delay = (c->flags & AV_CODEC_FLAG_LOW_DELAY) ? 1 : 0;
av_log(c, AV_LOG_DEBUG, "Using %d threads, %d max_frame_delay\n",
s.n_threads, s.max_frame_delay);
#else
More information about the ffmpeg-cvslog
mailing list