[svn] / branches / release-1_0-branch / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /branches/release-1_0-branch/xvidcore/src/encoder.c

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

revision 1506, Sun Jul 18 11:51:44 2004 UTC revision 1507, Sun Jul 18 12:03:19 2004 UTC
# Line 21  Line 21 
21   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
22   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
23   *   *
24   * $Id: encoder.c,v 1.102.2.6 2004-07-17 11:41:41 edgomez Exp $   * $Id: encoder.c,v 1.102.2.7 2004-07-18 12:03:19 edgomez Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 103  Line 103 
103          if (*base > 65535 || *inc > 65535) {          if (*base > 65535 || *inc > 65535) {
104                  int *biggest;                  int *biggest;
105                  int *other;                  int *other;
106                    float div;
107    
108                  if (*base > *inc) {                  if (*base > *inc) {
109                          biggest = base;                          biggest = base;
# Line 112  Line 113 
113                          other = base;                          other = base;
114                  }                  }
115    
116                  float div = ((float)*biggest)/((float)65535);                  div = ((float)*biggest)/((float)65535);
117                  *biggest = (int)(((float)*biggest)/div);                  *biggest = (int)(((float)*biggest)/div);
118                  *other = (int)(((float)*other)/div);                  *other = (int)(((float)*other)/div);
119          }          }

Legend:
Removed from v.1506  
changed lines
  Added in v.1507

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