changeset 26917:4c8ad45769c7

cast to correct type, suppress warnings
author bcoudurier
date Sun, 01 Jun 2008 03:36:23 +0000
parents 03e1725b5842
children 91594145ec94
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Sun Jun 01 03:35:27 2008 +0000
+++ b/libswscale/swscale.c	Sun Jun 01 03:36:23 2008 +0000
@@ -1849,7 +1849,7 @@
     int height= srcSliceH;
     int i, j;
     uint16_t *srcPtr= (uint16_t*)src[0];
-    uint16_t *dstPtr= dst[0] + dstStride[0]*y/2;
+    uint16_t *dstPtr= (uint16_t*)(dst[0] + dstStride[0]*y/2);
     for (i=0; i<height; i++)
     {
         for (j=0; j<length; j++) dstPtr[j] = bswap_16(srcPtr[j]);