diff options
author | James Almer <jamrial@gmail.com> | 2021-09-21 15:07:20 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-11-05 21:38:37 -0300 |
commit | cc33e73618a981de7fd96385ecb34719de031f16 (patch) | |
tree | 869431e5e33746b2507284cc03b512a05a476995 | |
parent | 61ed1182eeb2c38cba9cf09522423ad1ae70b413 (diff) | |
download | ffmpeg-cc33e73618a981de7fd96385ecb34719de031f16.tar.gz |
avcodec/libdav1d: let libdav1d choose optimal max frame delay
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 9a7fe439d969485de698569faa0b42e948cbd753)
-rw-r--r-- | libavcodec/libdav1d.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |