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

Git pushed a commit to branch master
in repository ffmpeg.

commit 9b7439c31b36311e00821b8944131f47f56662d6
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Mar 6 18:48:57 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Mar 9 11:25:58 2026 +0100

    swscale: don't pointlessly loop over NULL buffers
    
    This array is defined as contiguous.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 8a07bded3d..0968b0808f 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1335,7 +1335,7 @@ static int frame_ref(AVFrame *dst, const AVFrame *src)
     /* ref the buffers */
     for (int i = 0; i < FF_ARRAY_ELEMS(src->buf); i++) {
         if (!src->buf[i])
-            continue;
+            break;
         dst->buf[i] = av_buffer_ref(src->buf[i]);
         if (!dst->buf[i])
             return AVERROR(ENOMEM);

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

Reply via email to