diff options
author | kostya <kostya@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-02 15:35:58 +0000 |
---|---|---|
committer | kostya <kostya@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-02 15:35:58 +0000 |
commit | 570d0b83bd4fc93d262fc9483c2deac90c945639 (patch) | |
tree | f9af359803f8f67f76615959e2639a1e71bb0306 /libswscale | |
parent | 615d3ead235409f6824606c1a7523738c328e2c4 (diff) |
Testing RGB48 variants requires bigger stride in swscale-example.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29343 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale-example.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c index 8d60332897..7db1ce4148 100644 --- a/libswscale/swscale-example.c +++ b/libswscale/swscale-example.c @@ -66,11 +66,15 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, int srcFormat // avoid stride % bpp != 0 if (srcFormat==PIX_FMT_RGB24 || srcFormat==PIX_FMT_BGR24) srcStride[i]= srcW*3; + else if (srcFormat==PIX_FMT_RGB48BE || srcFormat==PIX_FMT_RGB48LE) + srcStride[i]= srcW*6; else srcStride[i]= srcW*4; if (dstFormat==PIX_FMT_RGB24 || dstFormat==PIX_FMT_BGR24) dstStride[i]= dstW*3; + else if (dstFormat==PIX_FMT_RGB48BE || dstFormat==PIX_FMT_RGB48LE) + dstStride[i]= dstW*6; else dstStride[i]= dstW*4; |