[FFmpeg-cvslog] avcodec/libdav1d: allow setting frame size limit in pixels

James Almer git at videolan.org
Thu Aug 15 04:03:24 EEST 2019


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Aug 14 22:01:05 2019 -0300| [03ba38683301d2af7b78247a82171c21ed3e4903] | committer: James Almer

avcodec/libdav1d: allow setting frame size limit in pixels

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03ba38683301d2af7b78247a82171c21ed3e4903
---

 configure             | 2 +-
 libavcodec/libdav1d.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 3fb8f3521d..c09c842809 100755
--- a/configure
+++ b/configure
@@ -6202,7 +6202,7 @@ enabled libcelt           && require libcelt celt/celt.h celt_decode -lcelt0 &&
                                die "ERROR: libcelt must be installed and version must be >= 0.11.0."; }
 enabled libcaca           && require_pkg_config libcaca caca caca.h caca_create_canvas
 enabled libcodec2         && require libcodec2 codec2/codec2.h codec2_create -lcodec2
-enabled libdav1d          && require_pkg_config libdav1d "dav1d >= 0.2.1" "dav1d/dav1d.h" dav1d_version
+enabled libdav1d          && require_pkg_config libdav1d "dav1d >= 0.4.0" "dav1d/dav1d.h" dav1d_version
 enabled libdavs2          && require_pkg_config libdavs2 "davs2 >= 1.6.0" davs2.h davs2_decoder_open
 enabled libdc1394         && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new
 enabled libdrm            && require_pkg_config libdrm libdrm xf86drm.h drmGetVersion
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 12c63245f8..8335751b7b 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -130,6 +130,7 @@ static av_cold int libdav1d_init(AVCodecContext *c)
     s.allocator.cookie = dav1d;
     s.allocator.alloc_picture_callback = libdav1d_picture_allocator;
     s.allocator.release_picture_callback = libdav1d_picture_release;
+    s.frame_size_limit = c->max_pixels;
     s.apply_grain = dav1d->apply_grain;
 
     s.n_tile_threads = dav1d->tile_threads



More information about the ffmpeg-cvslog mailing list