[FFmpeg-cvslog] lavfi/framepool: use av_image_check_size2().

Nicolas George git at videolan.org
Thu Nov 2 13:24:08 EET 2017


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Wed Nov  1 21:38:39 2017 +0100| [d5995c531d6e9e20e126ae64665783abe959d82b] | committer: Nicolas George

lavfi/framepool: use av_image_check_size2().

Allow filters to handle larger frames.

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

 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;
     }
 



More information about the ffmpeg-cvslog mailing list