git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b25c07
)
keyframes are now every 20 frames.
author
kramm
<kramm>
Sun, 12 Dec 2004 12:53:12 +0000
(12:53 +0000)
committer
kramm
<kramm>
Sun, 12 Dec 2004 12:53:12 +0000
(12:53 +0000)
src/jpeg2swf.c
patch
|
blob
|
history
diff --git
a/src/jpeg2swf.c
b/src/jpeg2swf.c
index
4eae988
..
098308d
100644
(file)
--- a/
src/jpeg2swf.c
+++ b/
src/jpeg2swf.c
@@
-211,7
+211,7
@@
TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int quality,
t = swf_InsertTag(t, ST_VIDEOFRAME);
swf_SetU16(t, 0xf00d);
quant = 1+(30-(30*quality)/100);
t = swf_InsertTag(t, ST_VIDEOFRAME);
swf_SetU16(t, 0xf00d);
quant = 1+(30-(30*quality)/100);
- if(!(frame&127)) {
+ if(!(frame%20)) {
swf_SetVideoStreamIFrame(t, &stream, pic2, quant);
} else {
swf_SetVideoStreamPFrame(t, &stream, pic2, quant);
swf_SetVideoStreamIFrame(t, &stream, pic2, quant);
} else {
swf_SetVideoStreamPFrame(t, &stream, pic2, quant);