From: kramm Date: Sun, 6 Nov 2005 22:58:17 +0000 (+0000) Subject: small bugfixes X-Git-Tag: xpdf-3-01~16 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=5aef26eca4bd74018284f97e5f9212dea1cf3e5d small bugfixes --- diff --git a/src/swfc.c b/src/swfc.c index 131c794..bc6d711 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -1114,6 +1114,8 @@ void s_texture(char*name, char*object, int x, int y, float scalex, float scaley, parameters_t p; FILLSTYLE*fs = &texture->fs; + memset(&p, 0, sizeof(parameters_t)); + if(bitmap) { fs->type = FILL_TILED; fs->id_bitmap = bitmap->id; @@ -1209,7 +1211,7 @@ void s_sound(char*name, char*filename) unsigned blocksize = 1152; int is_mp3 = 0; - if(wav_read(filename, &wav)) { + if(wav_read(&wav, filename)) { int t; wav_convert2mono(&wav, &wav2, 44100); samples = (U16*)wav2.data; @@ -1382,7 +1384,7 @@ int s_swf3action(char*name, char*action) ActionTAG* a = 0; instance_t* object = 0; if(name) - dictionary_lookup(&instances, name); + object = (instance_t*)dictionary_lookup(&instances, name); if(!object && name && *name) { /* we have a name, but couldn't find it. Abort. */ return 0;