X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=avi2swf%2Fv2swf.c;h=e6fdb2f495879d8ed468bd3fe5c6dbea9b640b24;hp=312fcf7b728c2e2a859d0866f6011fcfae07ce60;hb=2cfb71602733241db4b17cb6ed59ce4884e7d94a;hpb=57adc8e15707eb4ac9bf64ace17e3d55dd7a7cff diff --git a/avi2swf/v2swf.c b/avi2swf/v2swf.c index 312fcf7..e6fdb2f 100644 --- a/avi2swf/v2swf.c +++ b/avi2swf/v2swf.c @@ -972,29 +972,6 @@ void v2swf_backpatch(v2swf_t*v2swf, char*filename) } } -float v2swf_getprogress(v2swf_t*v2swf) -{ - float* p; - v2swf_internal_t* i; - msg("v2swf_getprogress()"); - if(!v2swf || !v2swf->internal) { - return 0.0; - } - i = (v2swf_internal_t*)v2swf->internal; - - p = (float*)videoreader_getinfo(i->video, "position"); - - if(p) { - return *p; - } else { - float f = i->frames/1500.0; /*fake*/ - if(f>1.0) - return 1.0; - else - return f; - } -} - void v2swf_setvideoparameter(videoreader_t*v, char*name, char*value) { msg("v2swf_setvideoparameter()");