- { SetBits(t,1,1);
- nbits = CountBits(m->sx,0);
- nbits = CountBits(m->sy,nbits);
- SetBits(t,nbits,5);
- SetBits(t,m->sx,nbits);
- SetBits(t,m->sy,nbits);
+ { swf_SetBits(t,1,1);
+ nbits = swf_CountBits(m->sx,0);
+ nbits = swf_CountBits(m->sy,nbits);
+ if(nbits>=32) {
+ fprintf(stderr,"rfxswf: Error: matrix values too large\n");
+ nbits = 31;
+ }
+ swf_SetBits(t,nbits,5);
+ swf_SetBits(t,m->sx,nbits);
+ swf_SetBits(t,m->sy,nbits);