PR #22425 opened by Ramiro Polla (ramiro)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22425
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22425.patch


>From 3b689c0d24e26efe3df4a59617894ec090bc91c2 Mon Sep 17 00:00:00 2001
From: Ramiro Polla <[email protected]>
Date: Fri, 6 Mar 2026 22:04:49 +0100
Subject: [PATCH] swscale/unscaled: fix planarCopyWrapper for float formats
 with same endianness

---
 libswscale/swscale_unscaled.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index f612f88c4d..c80731cee4 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2355,6 +2355,8 @@ static int planarCopyWrapper(SwsInternal *c, const 
uint8_t *const src[],
             } else {
                 if (is16BPS(c->opts.src_format) && is16BPS(c->opts.dst_format))
                     length *= 2;
+                else if (isFloat(c->opts.src_format) && 
isFloat(c->opts.dst_format))
+                    length *= 4;
                 else if (desc_src->comp[0].depth == 1)
                     length >>= 3; // monowhite/black
                 for (i = 0; i < height; i++) {
-- 
2.52.0

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

Reply via email to