1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Niklas Haas 2024-12-19 15:05:19 +01:00
parent 77db7f9b87
commit 6c9218d748

View File

@ -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;