keyframes are now every 20 frames.
authorkramm <kramm>
Sun, 12 Dec 2004 12:53:12 +0000 (12:53 +0000)
committerkramm <kramm>
Sun, 12 Dec 2004 12:53:12 +0000 (12:53 +0000)
src/jpeg2swf.c

index 4eae988..098308d 100644 (file)
@@ -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);