This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 1c101330d63455983287965521a7a0653a3b7d8e
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Mar 24 17:47:56 2026 +0100
Commit:     James Almer <[email protected]>
CommitDate: Tue Mar 24 23:13:00 2026 +0000

    avfilter/framepool: Remove impossible branches
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavfilter/framepool.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 10a9b6cf27..01ff89d7ce 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -74,7 +74,6 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* 
(*alloc)(size_t size),
         goto fail;
     }
 
-    if (!pool->linesize[0]) {
         ret = av_image_fill_linesizes(pool->linesize, pool->format,
                                       FFALIGN(pool->width, align));
         if (ret < 0) {
@@ -86,7 +85,6 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* 
(*alloc)(size_t size),
             if ((pool->linesize[i] & (pool->align - 1)))
                 goto fail;
         }
-    }
 
     for (i = 0; i < 4; i++)
         linesizes[i] = pool->linesize[i];
@@ -284,7 +282,7 @@ void ff_frame_pool_uninit(FFFramePool **pool)
 {
     int i;
 
-    if (!pool || !*pool)
+    if (!*pool)
         return;
 
     for (i = 0; i < 4; i++) {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to