Fix one warning
authorMichel Bardiaux <mbardiaux@mediaxim.be>
Wed, 14 Feb 2007 09:57:41 +0000 (09:57 +0000)
committerMichel Bardiaux <mbardiaux@mediaxim.be>
Wed, 14 Feb 2007 09:57:41 +0000 (09:57 +0000)
Originally committed as revision 7976 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/jpeg_ls.c

index 4629176..67f0d0f 100644 (file)
@@ -480,7 +480,7 @@ static int ls_decode_picture(MJpegDecodeContext *s, int near, int point_transfor
                 src += s->picture.linesize[0];
             }
         }else{
-            uint16_t *src = s->picture.data[0];
+            uint16_t *src = (uint16_t*) s->picture.data[0];
 
             for(i = 0; i < s->height; i++){
                 for(x = 0; x < w; x++){