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_GetMatrix(NULL, &m);
m.sx = 20 * 0x10000;
m.sy = 20 * 0x10000;
+ m.tx = -10;
+ m.ty = -10;
fs = swf_ShapeAddBitmapFillStyle(s, &m, id, 0);
swf_SetU16(t, id + 1); // id
r.xmin = r.ymin = 0;