Pārlūkot izejas kodu

swscale/swscale_unscaled: avoid nv12 <-> nv21 bug

This is not handled by the planar copy wrapper, so exclude it.
Niklas Haas 8 mēneši atpakaļ
vecāks
revīzija
5b9356f18e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      libswscale/swscale_unscaled.c

+ 2 - 1
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;