Diff of /swscale.c [460267] .. [1e352e] Maximize Restore

  Switch to unified view

a/swscale.c b/swscale.c
...
...
2757
            || (isPlanarYUV(srcFormat) && isGray(dstFormat))
2757
            || (isPlanarYUV(srcFormat) && isGray(dstFormat))
2758
            || (isPlanarYUV(dstFormat) && isGray(srcFormat))
2758
            || (isPlanarYUV(dstFormat) && isGray(srcFormat))
2759
            || (isGray(dstFormat) && isGray(srcFormat))
2759
            || (isGray(dstFormat) && isGray(srcFormat))
2760
            || (isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat)
2760
            || (isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat)
2761
                && c->chrDstHSubSample == c->chrSrcHSubSample
2761
                && c->chrDstHSubSample == c->chrSrcHSubSample
2762
                && c->chrDstVSubSample == c->chrSrcVSubSample))
2762
                && c->chrDstVSubSample == c->chrSrcVSubSample
2763
                && dstFormat != PIX_FMT_NV12 && dstFormat != PIX_FMT_NV21
2764
                && srcFormat != PIX_FMT_NV12 && srcFormat != PIX_FMT_NV21))
2763
        {
2765
        {
2764
            if (isPacked(c->srcFormat))
2766
            if (isPacked(c->srcFormat))
2765
                c->swScale= packedCopy;
2767
                c->swScale= packedCopy;
2766
            else /* Planar YUV or gray */
2768
            else /* Planar YUV or gray */
2767
                c->swScale= planarCopy;
2769
                c->swScale= planarCopy;