[FFmpeg-cvslog] r11675 - trunk/libavcodec/imgconvert.c

bcoudurier subversion
Thu Jan 31 01:00:08 CET 2008


Author: bcoudurier
Date: Thu Jan 31 01:00:08 2008
New Revision: 11675

Log:
cast to dest type, fix warning imgconvert.c:1958: warning: assignment from incompatible pointer type

Modified:
   trunk/libavcodec/imgconvert.c

Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c	(original)
+++ trunk/libavcodec/imgconvert.c	Thu Jan 31 01:00:08 2008
@@ -1901,9 +1901,9 @@ static void gray16_to_gray16(AVPicture *
 {
     int x, y, src_wrap, dst_wrap;
     uint16_t *s, *d;
-    s = src->data[0];
+    s = (uint16_t*)src->data[0];
     src_wrap = (src->linesize[0] - width * 2)/2;
-    d = dst->data[0];
+    d = (uint16_t*)dst->data[0];
     dst_wrap = (dst->linesize[0] - width * 2)/2;
     for(y=0; y<height; y++){
         for(x=0; x<width; x++){




More information about the ffmpeg-cvslog mailing list