summaryrefslogtreecommitdiffstats
path: root/libavcodec/libdav1d.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-08-14 22:01:05 -0300
committerJames Almer <jamrial@gmail.com>2019-08-14 22:01:05 -0300
commit03ba38683301d2af7b78247a82171c21ed3e4903 (patch)
treeb8ec0816b8c323c5aa29498f3bb8a4f86fac4ffb /libavcodec/libdav1d.c
parente1039b09c470a167449abf1cb36ff5201a3209e2 (diff)
downloadffmpeg-streaming-03ba38683301d2af7b78247a82171c21ed3e4903.zip
ffmpeg-streaming-03ba38683301d2af7b78247a82171c21ed3e4903.tar.gz
avcodec/libdav1d: allow setting frame size limit in pixels
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libdav1d.c')
-rw-r--r--libavcodec/libdav1d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 12c6324..8335751 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
OpenPOWER on IntegriCloud