X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfextract.c;h=f66dd83ffae1660a6d5ef4d5f88a46455ff78872;hb=ac8c6f00fbaa94b3136457caf1a24d8f4f0c12cc;hp=f636eea85c94da22ff58fc84cdda56da75fecc5f;hpb=5ab32df714797d858595bc24f134e28539326e49;p=swftools.git diff --git a/src/swfextract.c b/src/swfextract.c index f636eea..f66dd83 100644 --- a/src/swfextract.c +++ b/src/swfextract.c @@ -940,7 +940,7 @@ void handlelossless(TAG*tag) } #endif -FILE*mp3file; +static FILE*mp3file=0; void handlesoundstream(TAG*tag) { char*filename = "output.mp3"; @@ -1183,8 +1183,13 @@ int main (int argc,char ** argv) if (found) extractTag(&swf, destfilename); - if(mp3file) + if(mp3file) { fclose(mp3file); + } else { + if(extractmp3) { + msg(" Didn't find a soundstream in file"); + } + } swf_FreeTags(&swf); return 0;