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

Git pushed a commit to branch master
in repository ffmpeg.

commit b5fc178ae725a7201da120c0556714ab3095f8e5
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Nov 12 19:48:47 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Wed Nov 18 23:19:07 2026 +0000

    swscale/swscale_unscaled: call the RGB converter from one place in the row 
loop
---
 libswscale/swscale_unscaled.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index ccd96fb204..7a7b2bb1ee 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2042,12 +2042,14 @@ static int rgbToRgbWrapper(SwsInternal *c, const 
uint8_t *const src[], const int
             dstPtr += dstStride[0] * srcSliceY;
 
             for (i = 0; i < srcSliceH; i++) {
+                const uint8_t *row = srcPtr;
+
                 if(src_bswap) {
                     for(j=0; j<c->opts.src_w; j++)
                         ((uint16_t*)c->formatConvBuffer)[j] = 
av_bswap16(((uint16_t*)srcPtr)[j]);
-                    conv(c->formatConvBuffer, dstPtr, c->opts.src_w * srcBpp);
-                }else
-                    conv(srcPtr, dstPtr, c->opts.src_w * srcBpp);
+                    row = c->formatConvBuffer;
+                }
+                conv(row, dstPtr, c->opts.src_w * srcBpp);
                 if(dst_bswap)
                     for(j=0; j<c->opts.src_w; j++)
                         ((uint16_t*)dstPtr)[j] = 
av_bswap16(((uint16_t*)dstPtr)[j]);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to