[FFmpeg-cvslog] r22446 - trunk/libavcodec/dsputil.c

mru subversion
Thu Mar 11 03:32:01 CET 2010


Author: mru
Date: Thu Mar 11 03:32:01 2010
New Revision: 22446

Log:
Add some required casts

These casts are correct and safe.  The pointers are guaranteed to
have proper alignment, and aliasing is not a problem with character
types.

Modified:
   trunk/libavcodec/dsputil.c

Modified: trunk/libavcodec/dsputil.c
==============================================================================
--- trunk/libavcodec/dsputil.c	Thu Mar 11 01:42:13 2010	(r22445)
+++ trunk/libavcodec/dsputil.c	Thu Mar 11 03:32:01 2010	(r22446)
@@ -777,8 +777,8 @@ static void fill_block8_c(uint8_t *block
 static void scale_block_c(const uint8_t src[64]/*align 8*/, uint8_t *dst/*align 8*/, int linesize)
 {
     int i, j;
-    uint16_t *dst1 = dst;
-    uint16_t *dst2 = dst + linesize;
+    uint16_t *dst1 = (uint16_t *) dst;
+    uint16_t *dst2 = (uint16_t *)(dst + linesize);
 
     for (j = 0; j < 8; j++) {
         for (i = 0; i < 8; i++) {



More information about the ffmpeg-cvslog mailing list