X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fh.263%2Fswfvideo.c;h=d9e180376f743969e260af81263795f93111356c;hb=6f78b0ef3998e959ce09c5ef11d46149756b682b;hp=1b075ffda1e50c56c36853bcb5f9534ab15d4f17;hpb=6c3ab5574d31504d24710c2756899d49275c1a37;p=swftools.git diff --git a/lib/h.263/swfvideo.c b/lib/h.263/swfvideo.c index 1b075ff..d9e1803 100644 --- a/lib/h.263/swfvideo.c +++ b/lib/h.263/swfvideo.c @@ -1499,7 +1499,7 @@ void mkblack() tag = swf_InsertTag(tag, ST_END); int fi = open("black.swf", O_WRONLY|O_CREAT|O_TRUNC, 0644); - if(swf_WriteSWC(fi,&swf)<0) { + if(swf_WriteSWF(fi,&swf)<0) { fprintf(stderr,"WriteSWF() failed.\n"); } close(fi); @@ -1514,8 +1514,8 @@ int main(int argn, char*argv[]) TAG * tag; RGBA* pic, *pic2, rgb; SWFPLACEOBJECT obj; - int width = 0; - int height = 0; + unsigned width = 0; + unsigned height = 0; int frames = 10; int framerate = 29; unsigned char*data; @@ -1532,7 +1532,7 @@ int main(int argn, char*argv[]) memset(&stream, 0, sizeof(stream)); - getPNG(fname, &width, &height, &data); + png_load(fname, &width, &height, &data); pic = (RGBA*)rfx_alloc(width*height*sizeof(RGBA)); pic2 = (RGBA*)rfx_alloc(width*height*sizeof(RGBA)); memcpy(pic, data, width*height*sizeof(RGBA)); @@ -1634,7 +1634,7 @@ int main(int argn, char*argv[]) tag = swf_InsertTag(tag, ST_END); fi = open("video3.swf", O_WRONLY|O_CREAT|O_TRUNC, 0644); - if(swf_WriteSWC(fi,&swf)<0) { + if(swf_WriteSWF(fi,&swf)<0) { fprintf(stderr,"WriteSWF() failed.\n"); } close(fi);