diff options
author | James Almer <jamrial@gmail.com> | 2021-09-21 15:07:20 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-09-21 15:11:20 -0300 |
commit | 9a7fe439d969485de698569faa0b42e948cbd753 (patch) | |
tree | 132a159e2227c28d155b2bdbd048a04c69ef7fb9 | |
parent | 85413a5ae6948a1d6e4e947a4fca984b8c686016 (diff) | |
download | ffmpeg-9a7fe439d969485de698569faa0b42e948cbd753.tar.gz |
avcodec/libdav1d: let libdav1d choose optimal max frame delay
Signed-off-by: James Almer <jamrial@gmail.com>
-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 e4fdaf7229..2807210e50 100644 --- a/libavcodec/libdav1d.c +++ b/libavcodec/libdav1d.c @@ -237,7 +237,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 |