[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.35, Wed Jan 21 06:59:23 2004 UTC revision 1.1.2.36, Thu Jan 22 20:54:31 2004 UTC
# Line 617  Line 617 
617  #ifdef PASS_SMALLER  #ifdef PASS_SMALLER
618          if (dbytes > s->length) {          if (dbytes > s->length) {
619                  dbytes = s->length;                  dbytes = s->length;
620          } else          }
621    #endif
622    
623            /* Prevent stupid desired sizes under logical values */
624                  if (dbytes < rc->min_length[s->type-1]) {                  if (dbytes < rc->min_length[s->type-1]) {
625                  dbytes = rc->min_length[s->type-1];                  dbytes = rc->min_length[s->type-1];
         } else if (dbytes > rc->max_length) {  
                 /* ToDo: this condition is always wrong as max_length == maximum frame  
                  * length of first pass, so the first condition already caps the frame  
                  * size... */  
                 capped_to_max_framesize = 1;  
                 dbytes = rc->max_length;  
                 DPRINTF(XVID_DEBUG_RC,"[xvid rc] -- frame:%d Capped to maximum frame size\n",  
                                 data->frame_num);  
626          }          }
627  #endif  
628          /*------------------------------------------------------------------------          /*------------------------------------------------------------------------
629           * Desired frame length <-> quantizer mapping           * Desired frame length <-> quantizer mapping
630           *-----------------------------------------------------------------------*/           *-----------------------------------------------------------------------*/

Legend:
Removed from v.1.1.2.35  
changed lines
  Added in v.1.1.2.36

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