On 3/16/2025 9:52 AM, Niklas Haas wrote:
From: Niklas Haas <g...@haasn.dev>

This is not handled by the planar copy wrapper, so exclude it.
---
  libswscale/swscale_unscaled.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 1df160daaa..4959963b18 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2660,7 +2660,8 @@ 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) &&
+         isSwappedChroma(srcFormat) == isSwappedChroma(dstFormat))))
      {
          if (isPacked(c->opts.src_format))
              c->convert_unscaled = packedCopyWrapper;

LGTM.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to