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

Diff of /xvidcore/src/plugins/plugin_2pass2.c

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

revision 1.1.2.21, Tue Jun 10 10:12:24 2003 UTC revision 1.1.2.22, Tue Jun 10 20:47:29 2003 UTC
# Line 96  Line 96 
96          double movie_curve;          double movie_curve;
97    
98          /* dynamic */          /* dynamic */
   
99          int * keyframe_locations;          int * keyframe_locations;
100          stat_t * stats;          stat_t * stats;
101    
# Line 245  Line 244 
244    
245          /* Compute the target filesize */          /* Compute the target filesize */
246      if (rc->param.bitrate<0) {      if (rc->param.bitrate<0) {
247          /* if negative, bitrate equals the target (int kbytes) */                  /* if negative, bitrate equals the target (in kbytes) */
248          rc->target = (-rc->param.bitrate) * 1024;          rc->target = (-rc->param.bitrate) * 1024;
   
249      }else if (rc->num_frames  < create->fbase/create->fincr) {      }else if (rc->num_frames  < create->fbase/create->fincr) {
250                  /* Source sequence is less than 1s long, we do as if it was 1s long */                  /* Source sequence is less than 1s long, we do as if it was 1s long */
251                  rc->target = rc->param.bitrate / 8;                  rc->target = rc->param.bitrate / 8;
# Line 413  Line 411 
411                  rc->curve_comp_error += dbytes - (int)dbytes;                  rc->curve_comp_error += dbytes - (int)dbytes;
412          }          }
413    
   
414          /*          /*
415           * We can't do bigger frames than first pass, this would be stupid as first           * We can't do bigger frames than first pass, this would be stupid as first
416           * pass is quant=2 and that reaching quant=1 is not worth it. We would lose           * pass is quant=2 and that reaching quant=1 is not worth it. We would lose

Legend:
Removed from v.1.1.2.21  
changed lines
  Added in v.1.1.2.22

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