fixed compiler warnings
[swftools.git] / src / swfdump.c
index b2f00aa..9b58e2d 100644 (file)
@@ -416,7 +416,7 @@ void handleVideoStream(TAG*tag, char*prefix)
 void handleVideoFrame(TAG*tag, char*prefix)
 {
     U32 code, version, reference, sizeflags;
-    U32 width, height;
+    U32 width=0, height=0;
     U8 type;
     U16 id = swf_GetU16(tag);
     U16 frame = swf_GetU16(tag);
@@ -662,7 +662,9 @@ int main (int argc,char ** argv)
 
     if (f<0)
     { 
-        perror("Couldn't open file: ");
+       char buffer[256];
+       sprintf(buffer, "Couldn't open %s", filename);
+        perror(buffer);
         exit(1);
     }
     if FAILED(swf_ReadSWF(f,&swf))