Revision e593826b libswscale/swscale.c

View differences:

libswscale/swscale.c
1663 1663
                    srcPtr+= srcStride[plane];
1664 1664
                    dstPtr+= dstStride[plane];
1665 1665
                }
1666
            } else if (dstStride[plane]==srcStride[plane] && srcStride[plane] > 0 &&
1667
                       srcStride[plane] == length) {
1668
                    memcpy(dst[plane] + dstStride[plane]*y, src[plane],
1669
                           height*dstStride[plane]);
1666
            } else if (dstStride[plane] == srcStride[plane] &&
1667
                       srcStride[plane] > 0 && srcStride[plane] == length) {
1668
                memcpy(dst[plane] + dstStride[plane]*y, src[plane],
1669
                       height*dstStride[plane]);
1670 1670
            } else {
1671 1671
                if(is16BPS(c->srcFormat) && is16BPS(c->dstFormat))
1672 1672
                    length*=2;

Also available in: Unified diff