This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit eb36dce742c32140a1ea1de83013b88a681595ed Author: James Almer <[email protected]> AuthorDate: Thu Feb 12 13:44:41 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Tue Feb 17 20:19:01 2026 -0300 avfilter/video: reduce potential amount of pool reinitializations Given we now align both dimensions when allocating buffers, don't reinitialize the pool when dealing with dimension changes that will not affect the existing pool size. Signed-off-by: James Almer <[email protected]> --- libavfilter/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/video.c b/libavfilter/video.c index 13dab90b65..3f23a12c07 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -84,7 +84,8 @@ AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int alig return NULL; } - if (pool_width != w || pool_height != h || + if (FFALIGN(pool_width, pool_align) != FFALIGN(w, align) || + FFALIGN(pool_height, pool_align) != FFALIGN(h, align) || pool_format != link->format || pool_align != align) { ff_frame_pool_uninit(&li->frame_pool); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
