[FFmpeg-soc] [soc]: r1361 - rv40/rv40.c

kostya subversion at mplayerhq.hu
Mon Sep 17 08:34:49 CEST 2007


Author: kostya
Date: Mon Sep 17 08:34:49 2007
New Revision: 1361

Log:
Initialize array to zero as suggested by Michael instead of memset()

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Mon Sep 17 08:34:49 2007
@@ -148,14 +148,12 @@ static VLC mbinfo_vlc, ptype_vlc[NUM_PTY
 static int rv40_gen_vlc(const uint8_t *bits2, int size, VLC *vlc)
 {
     int i;
-    int counts[17], codes[17];
+    int counts[17] = {0}, codes[17];
     uint16_t *cw, *syms;
     uint8_t *bits;
     int maxbits = 0, realsize;
     int ret;
 
-    memset(counts, 0, 16 * sizeof(int));
-
     cw = av_mallocz(size * 2);
     syms = av_malloc(size * 2);
     bits = av_malloc(size);



More information about the FFmpeg-soc mailing list