[FFmpeg-cvslog] [ffmpeg] branch release/7.1 updated. 1b48158a23 swscale/swscale_unscaled: use 8 line alignment for planarCopyWrapper with dithering
ffmpeg-git at ffmpeg.org
ffmpeg-git at ffmpeg.org
Wed Aug 13 01:48:27 EEST 2025
The branch, release/7.1 has been updated
via 1b48158a23f1f2d4d5bc6a8de60b7fc049061da2 (commit)
from c2184b65d214d60f2d3df86a11ca502567a3d134 (commit)
- Log -----------------------------------------------------------------
commit 1b48158a23f1f2d4d5bc6a8de60b7fc049061da2
Author: Marton Balint <cus at passwd.hu>
AuthorDate: Sun Aug 3 13:44:03 2025 +0200
Commit: Marton Balint <cus at passwd.hu>
CommitDate: Wed Aug 13 00:42:38 2025 +0200
swscale/swscale_unscaled: use 8 line alignment for planarCopyWrapper with dithering
Dithering relies on a 8 line dithering table and the code always uses it from
the beginning. So in order to make dithering independent from height of the
slices used we must enforce a 8 line alignment.
Fixes issue #20071.
Signed-off-by: Marton Balint <cus at passwd.hu>
(cherry picked from commit b61e510e7500c27c7dee2b9c8cfa77689195f2a0)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index d403c953cc..cb73ba7810 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2267,10 +2267,13 @@ void ff_get_unscaled_swscale(SwsContext *c)
c->chrDstVSubSample == c->chrSrcVSubSample &&
!isSemiPlanarYUV(srcFormat) && !isSemiPlanarYUV(dstFormat))))
{
- if (isPacked(c->srcFormat))
+ if (isPacked(c->srcFormat)) {
c->convert_unscaled = packedCopyWrapper;
- else /* Planar YUV or gray */
+ } else { /* Planar YUV or gray */
c->convert_unscaled = planarCopyWrapper;
+ if (c->dither != SWS_DITHER_NONE)
+ c->dst_slice_align = 8 << c->chrDstVSubSample;
+ }
}
#if ARCH_PPC
-----------------------------------------------------------------------
Summary of changes:
libswscale/swscale_unscaled.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
hooks/post-receive
--
More information about the ffmpeg-cvslog
mailing list