changeset 1655:1d741dfa190c

zeroing picture struct
author arpi
date Thu, 23 Aug 2001 12:46:04 +0000
parents 9d85b84e367e
children cd77b8e28f82
files libmpeg2/decode.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpeg2/decode.c	Thu Aug 23 12:24:59 2001 +0000
+++ b/libmpeg2/decode.c	Thu Aug 23 12:46:04 2001 +0000
@@ -82,6 +82,7 @@
 //    printf("libmpeg2 config flags = 0x%X\n",config.flags);
 
     picture=malloc(sizeof(picture_t)); // !!! NEW HACK :) !!!
+    memset(picture,0,sizeof(picture_t));
 
     header_state_init (picture);
 //    picture->repeat_count=0;