changeset 11459:5fe3559e8e71 libavcodec

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.
author mru
date Thu, 11 Mar 2010 02:32:01 +0000
parents bf6d274fef39
children a385968f8fb0
files dsputil.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dsputil.c	Wed Mar 10 22:24:46 2010 +0000
+++ b/dsputil.c	Thu Mar 11 02:32:01 2010 +0000
@@ -777,8 +777,8 @@
 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++) {