lavfi/framepool: use av_image_check_size2().
authorNicolas George <george@nsup.org>
Wed, 1 Nov 2017 20:38:39 +0000 (21:38 +0100)
committerNicolas George <george@nsup.org>
Thu, 2 Nov 2017 11:23:46 +0000 (12:23 +0100)
Allow filters to handle larger frames.

libavfilter/framepool.c

index 42c0e58..da2ac5c 100644 (file)
@@ -71,7 +71,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),
     pool->format = format;
     pool->align = align;
 
     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;
     }
 
         goto fail;
     }