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

Git pushed a commit to branch master
in repository ffmpeg.

commit 3e99631873ea3091b188f34d57eafe5f782c0a18
Author:     Niklas Haas <[email protected]>
AuthorDate: Sun Mar 29 16:40:51 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Fri Apr 10 15:12:18 2026 +0200

    avfilter/framepool: remove pointless ternary (cosmetic)
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavfilter/framepool.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 9f8814f897..752a16eb64 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -188,8 +188,9 @@ AVFrame *ff_frame_pool_get(FFFramePool *pool)
         }
 
         if (desc->flags & AV_PIX_FMT_FLAG_PAL) {
-            enum AVPixelFormat format =
-                pool->pix_fmt == AV_PIX_FMT_PAL8 ? AV_PIX_FMT_BGR8 : 
pool->pix_fmt;
+            enum AVPixelFormat format = pool->pix_fmt;
+            if (format == AV_PIX_FMT_PAL8)
+                format = AV_PIX_FMT_BGR8;
 
             av_assert0(frame->data[1] != NULL);
             if (avpriv_set_systematic_pal2((uint32_t *)frame->data[1], format) 
< 0)

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

Reply via email to