PR #22804 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22804
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22804.patch

If any of the dstStrides is not aligned mod 16, the warning
above this one will be triggered, setting stride_unaligned_warned,
so that the following check for stride_unaligned_warned will
be always false.


>From e9e40b372edbdd9eb77f6cf649ca324f86335ce7 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <[email protected]>
Date: Mon, 13 Apr 2026 01:27:05 +0200
Subject: [PATCH] swscale/swscale: Remove ineffective check

If any of the dstStrides is not aligned mod 16, the warning
above this one will be triggered, setting stride_unaligned_warned,
so that the following check for stride_unaligned_warned will
be always false.

Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libswscale/swscale.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 3ebbcd5d3f..38320fe1c4 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -357,7 +357,6 @@ int ff_swscale(SwsInternal *c, const uint8_t *const src[], 
const int srcStride[]
 #if ARCH_X86
     if (   (uintptr_t) dst[0]&15 || (uintptr_t) dst[1]&15 || (uintptr_t) 
dst[2]&15
         || (uintptr_t)src2[0]&15 || (uintptr_t)src2[1]&15 || 
(uintptr_t)src2[2]&15
-        ||  dstStride[0]&15 ||  dstStride[1]&15 ||  dstStride[2]&15 ||  
dstStride[3]&15
         || srcStride2[0]&15 || srcStride2[1]&15 || srcStride2[2]&15 || 
srcStride2[3]&15
     ) {
         SwsInternal *const ctx = c->parent ? sws_internal(c->parent) : c;
-- 
2.52.0

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

Reply via email to