X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfdump.c;h=3e15b6aecfe3f0308e48e32f2f9730faa92df60f;hb=aee9de2c6eb23628e54b6896f5b441d9b39317c1;hp=fe3cb3cf4ddc40f47706d54489a4fe346c1cd21b;hpb=58e96671dcb9a558401ed19056121604c12bc996;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index fe3cb3c..3e15b6a 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -4,8 +4,20 @@ Part of the swftools package. Copyright (c) 2001 Matthias Kramm + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. - This file is distributed under the GPL, see file COPYING for details */ + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "../config.h" @@ -56,7 +68,6 @@ struct options_t options[] = {"e","html"}, {"p","placements"}, {"u","used"}, - {"v","verbose"}, {"V","version"}, {"d","hex"}, {0,0} @@ -622,7 +633,7 @@ int main (int argc,char ** argv) return 1; } - f = open(filename,O_RDONLY); + f = open(filename,O_RDONLY|O_BINARY); if (f<0) { @@ -878,6 +889,11 @@ int main (int argc,char ** argv) handleEditText(tag); printf("\n"); } + else if(tag->id == ST_DEFINEMOVIE) { + U16 id = swf_GetU16(tag); + char*s = swf_GetString(tag); + printf(" URL: %s\n", s); + } else if(tag->id == ST_DEFINETEXT || tag->id == ST_DEFINETEXT2) { if(showtext) handleText(tag);