changeset 2169:db8baace74d8 libavcodec

Minor Patch for shared libs on Mac OSX by (Bill May <wmay at cisco dot com>)
author michael
date Fri, 13 Aug 2004 15:30:42 +0000
parents f3f5dabef677
children 51da590b31a3
files dsputil.c utils.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dsputil.c	Fri Aug 13 14:40:33 2004 +0000
+++ b/dsputil.c	Fri Aug 13 15:30:42 2004 +0000
@@ -31,8 +31,8 @@
 #include "simple_idct.h"
 #include "faandct.h"
 
-uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
-uint32_t squareTbl[512];
+uint8_t cropTbl[256 + 2 * MAX_NEG_CROP] = {0, };
+uint32_t squareTbl[512] = {0, };
 
 const uint8_t ff_zigzag_direct[64] = {
     0,   1,  8, 16,  9,  2,  3, 10,
@@ -59,7 +59,7 @@
 };
 
 /* not permutated inverse zigzag_direct + 1 for MMX quantizer */
-uint16_t __align8 inv_zigzag_direct16[64];
+uint16_t __align8 inv_zigzag_direct16[64] = {0, };
 
 const uint8_t ff_alternate_horizontal_scan[64] = {
     0,  1,   2,  3,  8,  9, 16, 17, 
--- a/utils.c	Fri Aug 13 14:40:33 2004 +0000
+++ b/utils.c	Fri Aug 13 15:30:42 2004 +0000
@@ -112,7 +112,7 @@
 }
 
 /* encoder management */
-AVCodec *first_avcodec;
+AVCodec *first_avcodec = NULL;
 
 void register_avcodec(AVCodec *format)
 {