Revision c4e2b826 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
                memcpy(dst[plane] + dstStride[plane]*y, src[plane], height*dstStride[plane]);
1668
            else {
1666
            } else if (dstStride[plane]==srcStride[plane] && srcStride[plane] > 0) {
1667
                if (height > 0)
1668
                    memcpy(dst[plane] + dstStride[plane]*y, src[plane],
1669
                           (height - 1)*dstStride[plane] + length);
1670
            } else {
1669 1671
                if(is16BPS(c->srcFormat) && is16BPS(c->dstFormat))
1670 1672
                    length*=2;
1671 1673
                for (i=0; i<height; i++) {

Also available in: Unified diff