aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-12-19 15:05:19 +0100
committerNiklas Haas <git@haasn.dev>2024-12-23 11:32:02 +0100
commit6c9218d748e06da019b6d15c37e5849d8a69bb07 (patch)
tree1b21a6e7e67d1b224480f2b372e6928243b546d8
parent77db7f9b87811aa588e6ab6a7256f7cd8267265d (diff)
downloadffmpeg-6c9218d748e06da019b6d15c37e5849d8a69bb07.tar.gz
swscale/unscaled: allow semiplanar copies
As fixed in the previous commit, this enables semipacked range and bit depth conversions. Previously these would go through the general purpose path. Signed-off-by: Niklas Haas <git@haasn.dev> Sponsored-by: Sovereign Tech Fund
-rw-r--r--libswscale/swscale_unscaled.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index a4d18bf63e..907c1600c5 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2588,7 +2588,7 @@ void ff_get_unscaled_swscale(SwsInternal *c)
(isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) &&
c->chrDstHSubSample == c->chrSrcHSubSample &&
c->chrDstVSubSample == c->chrSrcVSubSample &&
- !isSemiPlanarYUV(srcFormat) && !isSemiPlanarYUV(dstFormat))))
+ isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat))))
{
if (isPacked(c->opts.src_format))
c->convert_unscaled = packedCopyWrapper;