X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fabc.c;h=18be42be3693b3384ba42de19fbe41ffbe457ae2;hb=c200c55a27c26cccdbb75cc3aeeded3392749411;hp=c8e9636486b869ac5161896fc29a426c017ed0f2;hpb=273b13c42690d6bb80228e8a27da9a18f6ec1bfe;p=swftools.git diff --git a/lib/as3/abc.c b/lib/as3/abc.c index c8e9636..18be42b 100644 --- a/lib/as3/abc.c +++ b/lib/as3/abc.c @@ -877,7 +877,7 @@ void* swf_ReadABC(TAG*tag) array_append(file->method_bodies, NO_KEY, c); } if(tag->len - tag->pos) { - fprintf(stderr, "%d unparsed bytes remaining in ABC block\n", tag->len - tag->pos); + fprintf(stderr, "ERROR: %d unparsed bytes remaining in ABC block\n", tag->len - tag->pos); return 0; } @@ -1197,12 +1197,15 @@ void swf_WriteABC(TAG*abctag, void*code) { pool_t*pool = writeABC(abctag, code, 0); pool_optimize(pool); + swf_ResetTag(abctag, abctag->id); writeABC(abctag, code, pool); pool_destroy(pool); } void abc_file_free(abc_file_t*file) { + if(!file) + return; int t; if(file->metadata) { for(t=0;tmetadata->num;t++) {