git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a6b1b24
)
output error if soundstream requested but not found
author
kramm
<kramm>
Fri, 26 Sep 2008 11:31:13 +0000
(11:31 +0000)
committer
kramm
<kramm>
Fri, 26 Sep 2008 11:31:13 +0000
(11:31 +0000)
src/swfextract.c
patch
|
blob
|
history
diff --git
a/src/swfextract.c
b/src/swfextract.c
index
f636eea
..
f66dd83
100644
(file)
--- a/
src/swfextract.c
+++ b/
src/swfextract.c
@@
-940,7
+940,7
@@
void handlelossless(TAG*tag)
}
#endif
}
#endif
-FILE*mp3file;
+static FILE*mp3file=0;
void handlesoundstream(TAG*tag)
{
char*filename = "output.mp3";
void handlesoundstream(TAG*tag)
{
char*filename = "output.mp3";
@@
-1183,8
+1183,13
@@
int main (int argc,char ** argv)
if (found)
extractTag(&swf, destfilename);
if (found)
extractTag(&swf, destfilename);
- if(mp3file)
+ if(mp3file) {
fclose(mp3file);
fclose(mp3file);
+ } else {
+ if(extractmp3) {
+ msg("<error> Didn't find a soundstream in file");
+ }
+ }
swf_FreeTags(&swf);
return 0;
swf_FreeTags(&swf);
return 0;