[cvs] / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /xvidcore/src/encoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.105, Sun Apr 4 11:47:21 2004 UTC revision 1.106, Sat Jul 17 11:42:46 2004 UTC
# Line 100  Line 100 
100                  i--;                  i--;
101          }          }
102    
103          /* if neccessary, round to 65535 accuracy */          if (*base > 65535 || *inc > 65535) {
104          if (*base > 65535) {                  int *biggest;
105                  float div = (float) *base / 65535;                  int *other;
106                  *base = (int) (*base / div);  
107                  *inc = (int) (*inc / div);                  if (*base > *inc) {
108                            biggest = base;
109                            other = inc;
110                    } else {
111                            biggest = inc;
112                            other = base;
113                    }
114    
115                    float div = ((float)*biggest)/((float)65535);
116                    *biggest = (int)(((float)*biggest)/div);
117                    *other = (int)(((float)*other)/div);
118          }          }
119  }  }
120    

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.106

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4