[FFmpeg-cvslog] r16916 - trunk/libavcodec/rv34.c

kostya subversion
Sun Feb 1 16:03:41 CET 2009


Author: kostya
Date: Sun Feb  1 16:03:40 2009
New Revision: 16916

Log:
Silence two pointer assignment compiler warnings in rv34.c

Modified:
   trunk/libavcodec/rv34.c

Modified: trunk/libavcodec/rv34.c
==============================================================================
--- trunk/libavcodec/rv34.c	Sun Feb  1 15:44:51 2009	(r16915)
+++ trunk/libavcodec/rv34.c	Sun Feb  1 16:03:40 2009	(r16916)
@@ -223,7 +223,7 @@ static int rv34_decode_cbp(GetBitContext
     int ones;
     static const int cbp_masks[3] = {0x100000, 0x010000, 0x110000};
     static const int shifts[4] = { 0, 2, 8, 10 };
-    int *curshift = shifts;
+    const int *curshift = shifts;
     int i, t, mask;
 
     code = get_vlc2(gb, vlc->cbppattern[table].table, 9, 2);
@@ -883,7 +883,7 @@ static void rv34_pred_4x4_block(RV34DecC
     }
     if(!right && up){
         topleft = dst[-stride + 3] * 0x01010101;
-        prev = &topleft;
+        prev = (uint8_t*)&topleft;
     }
     r->h.pred4x4[itype](dst, prev, stride);
 }




More information about the ffmpeg-cvslog mailing list