diff mbox

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

Message ID 20171101203953.11309-2-george@nsup.org
State Accepted
Commit d5995c531d6e9e20e126ae64665783abe959d82b
Headers show

Commit Message

Nicolas George Nov. 1, 2017, 8:39 p.m. UTC
Allow filter to handle larger frames.

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

Comments

Paul B Mahol Nov. 1, 2017, 9:42 p.m. UTC | #1
On 11/1/17, Nicolas George <george@nsup.org> wrote:
> Allow filter to handle larger frames.
>
> Signed-off-by: Nicolas George <george@nsup.org>
> ---
>  libavfilter/framepool.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

lgtm
diff mbox

Patch

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