Revision 5d5a8813 libswscale/swscale-example.c

View differences:

libswscale/swscale-example.c
66 66
        // avoid stride % bpp != 0
67 67
        if (srcFormat==PIX_FMT_RGB24 || srcFormat==PIX_FMT_BGR24)
68 68
            srcStride[i]= srcW*3;
69
        else if (srcFormat==PIX_FMT_RGB48BE || srcFormat==PIX_FMT_RGB48LE)
70
            srcStride[i]= srcW*6;
69 71
        else
70 72
            srcStride[i]= srcW*4;
71 73

  
72 74
        if (dstFormat==PIX_FMT_RGB24 || dstFormat==PIX_FMT_BGR24)
73 75
            dstStride[i]= dstW*3;
76
        else if (dstFormat==PIX_FMT_RGB48BE || dstFormat==PIX_FMT_RGB48LE)
77
            dstStride[i]= dstW*6;
74 78
        else
75 79
            dstStride[i]= dstW*4;
76 80

  

Also available in: Unified diff