mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
lavfi/framepool: use av_image_check_size2().
Allow filters to handle larger frames.
This commit is contained in:
parent
345e7072ab
commit
d5995c531d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user