[svn] / branches / dev-api-4 / xvidcore / src / plugins / plugin_2pass2.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/plugins/plugin_2pass2.c

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

revision 1246, Sun Dec 7 15:08:15 2003 UTC revision 1247, Mon Dec 8 12:38:04 2003 UTC
# Line 25  Line 25 
25   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
26   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27   *   *
28   * $Id: plugin_2pass2.c,v 1.1.2.29 2003-12-07 15:08:15 edgomez Exp $   * $Id: plugin_2pass2.c,v 1.1.2.30 2003-12-08 12:38:04 syskin Exp $
29   *   *
30   *****************************************************************************/   *****************************************************************************/
31    
# Line 436  Line 436 
436          if (data->quant > 0)          if (data->quant > 0)
437                  return(0);                  return(0);
438    
439          /* Second case: We are in a Quant zone */          /* Second case: insufficent stats data */
440            if (data->frame_num >= rc->num_frames) {
441                    DPRINTF(XVID_DEBUG_RC,"[xvid rc] -- stats file too short (now processing frame %d)",
442                            data->frame_num);
443                    return(0);
444            }
445    
446            /* Third case: We are in a Quant zone */
447          if (s->zone_mode == XVID_ZONE_QUANT) {          if (s->zone_mode == XVID_ZONE_QUANT) {
448                  rc->fq_error += s->weight;                  rc->fq_error += s->weight;
449                  data->quant = (int)rc->fq_error;                  data->quant = (int)rc->fq_error;
# Line 447  Line 454 
454                  return(0);                  return(0);
455          }          }
456    
         /* Third case: insufficent stats data */  
         if (data->frame_num >= rc->num_frames)  
                 return(0);  
457    
458          /*************************************************************************/          /*************************************************************************/
459          /*************************************************************************/          /*************************************************************************/

Legend:
Removed from v.1246  
changed lines
  Added in v.1247

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