[FFmpeg-devel] [PATCH 2/2] lavfi/framepool: use av_image_check_size2().

Nicolas George george at nsup.org
Wed Nov 1 22:39:53 EET 2017


Allow filter to handle larger frames.

Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/framepool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 42c0e58498..da2ac5cf69 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -71,7 +71,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),
     pool->format = format;
     pool->align = align;
 
-    if ((ret = av_image_check_size(width, height, 0, NULL)) < 0) {
+    if ((ret = av_image_check_size2(width, height, INT64_MAX, format, 0, NULL)) < 0) {
         goto fail;
     }
 
-- 
2.14.2



More information about the ffmpeg-devel mailing list