X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfdump.c;h=9b58e2daf71410ff64bc6eb7c98677d5ba2decfd;hp=b2f00aa8fbba65d0697085911ae13459bec5fa44;hb=8cd6b7f4e60afa919134a2a2ce9af12809d01bbc;hpb=f0643e4d51849398560a6a0c8e64f7b0e31eca20 diff --git a/src/swfdump.c b/src/swfdump.c index b2f00aa..9b58e2d 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -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))