git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed shape bounding boxes.
[swftools.git]
/
avi2swf
/
v2swf.c
diff --git
a/avi2swf/v2swf.c
b/avi2swf/v2swf.c
index
e6fdb2f
..
e983c36
100644
(file)
--- a/
avi2swf/v2swf.c
+++ b/
avi2swf/v2swf.c
@@
-584,18
+584,16
@@
static int encodeoneframe(v2swf_internal_t*i)
return 0;
}
return 0;
}
- i->fpspos += i->fpsratio;
-
- /* skip frames */
- if(i->fpspos<1.0) {
- return 0;
- }
-
msg("encoding image for frame %d\n", i->frames);
msg("encoding image for frame %d\n", i->frames);
-
- if(i->showframe)
+ if(i->showframe) {
+ i->fpspos += i->fpsratio;
+ /* skip frames */
+ if(i->fpspos<1.0) {
+ return 0;
+ }
writeShowFrame(i);
writeShowFrame(i);
-
+ }
+
msg("scaling\n");
scaleimage(i);
msg("scaling\n");
scaleimage(i);
@@
-798,7
+796,7
@@
int v2swf_init(v2swf_t*v2swf, videoreader_t * video)
i->audio_fix = 1.0;
i->fixheader = 0;
i->framerate = video->fps;
i->audio_fix = 1.0;
i->fixheader = 0;
i->framerate = video->fps;
- i->fpsratio = 1.00000000;
+ i->fpsratio = 1.00000000000;
i->fpspos = 0.0;
i->bitrate = 32;
i->version = 6;
i->fpspos = 0.0;
i->bitrate = 32;
i->version = 6;