+void swf_SetVideoStreamBlackFrame(TAG*tag, VIDEOSTREAM*s)
+{
+ int bx, by;
+ int quant = 31;
+ int x,y;
+ s->quant = quant;
+
+ writeHeader(tag, s->width, s->height, s->frame, quant, TYPE_IFRAME);
+
+ for(y=0;y<s->height;y++)
+ for(x=0;x<s->width;x++) {
+ s->current[y*s->width+x].y = 0;
+ s->current[y*s->width+x].u = 128;
+ s->current[y*s->width+x].v = 128;
+ }
+ for(x=0;x<16;x++)
+ for(y=0;y<16;y++) {
+ s->current[y*s->width+x].y = 64;
+ s->current[y*s->width+x].u = 128;
+ s->current[y*s->width+x].v = 128;
+ }
+
+ for(by=0;by<s->bby;by++)
+ {
+ for(bx=0;bx<s->bbx;bx++)
+ {
+ encode_IFrame_block(tag, s, bx, by);
+ }
+ }
+ s->frame++;
+ memcpy(s->oldpic, s->current, s->width*s->height*sizeof(YUV));
+}