changeset 7945:25fa57ac17d4 libavcodec

Remove useless casts and use variable instead of its type in sizeof.
author benoit
date Tue, 30 Sep 2008 09:08:27 +0000
parents 518521276932
children cbb9b2f88ccb
files indeo3.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/indeo3.c	Tue Sep 30 09:05:34 2008 +0000
+++ b/indeo3.c	Tue Sep 30 09:08:27 2008 +0000
@@ -66,7 +66,7 @@
 {
   int i, j;
 
-  s->ModPred = (unsigned char *) av_malloc (8 * 128);
+  s->ModPred = av_malloc(8 * 128);
 
   for (i=0; i < 128; ++i) {
     s->ModPred[i+0*128] = (i > 126) ? 254 : 2*((i + 1) - ((i + 1) % 2));
@@ -80,7 +80,7 @@
     s->ModPred[i+7*128] =                        2*((i + 5) - ((i + 4) % 9));
   }
 
-  s->corrector_type = (unsigned short *) av_malloc (24 * 256 * sizeof(unsigned short));
+  s->corrector_type = av_malloc(24 * 256 * sizeof(*s->corrector_type));
 
   for (i=0; i < 24; ++i) {
     for (j=0; j < 256; ++j) {