Revision 7915e038

View differences:

libswscale/swscale.c
1657 1657
        if ((dstFormat == PIX_FMT_RGB32_1 || dstFormat == PIX_FMT_BGR32_1) && !isRGBA32(srcFormat))
1658 1658
            dstPtr += ALT32_CORR;
1659 1659

  
1660
        if (dstStride[0]*srcBpp == srcStride[0]*dstBpp && srcStride[0] > 0)
1660
        if (dstStride[0]*srcBpp == srcStride[0]*dstBpp && srcStride[0] > 0 && !(srcStride[0]%srcBpp))
1661 1661
            conv(srcPtr, dstPtr + dstStride[0]*srcSliceY, srcSliceH*srcStride[0]);
1662 1662
        else {
1663 1663
            int i;

Also available in: Unified diff