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.34 2004-01-07 13:51:24 edgomez Exp $ |
* $Id: plugin_2pass2.c,v 1.1.2.35 2004-01-21 06:59:23 syskin Exp $ |
29 |
* |
* |
30 |
*****************************************************************************/ |
*****************************************************************************/ |
31 |
|
|
618 |
if (dbytes > s->length) { |
if (dbytes > s->length) { |
619 |
dbytes = s->length; |
dbytes = s->length; |
620 |
} else |
} else |
|
#endif |
|
621 |
if (dbytes < rc->min_length[s->type-1]) { |
if (dbytes < rc->min_length[s->type-1]) { |
622 |
dbytes = rc->min_length[s->type-1]; |
dbytes = rc->min_length[s->type-1]; |
623 |
} else if (dbytes > rc->max_length) { |
} else if (dbytes > rc->max_length) { |
629 |
DPRINTF(XVID_DEBUG_RC,"[xvid rc] -- frame:%d Capped to maximum frame size\n", |
DPRINTF(XVID_DEBUG_RC,"[xvid rc] -- frame:%d Capped to maximum frame size\n", |
630 |
data->frame_num); |
data->frame_num); |
631 |
} |
} |
632 |
|
#endif |
633 |
/*------------------------------------------------------------------------ |
/*------------------------------------------------------------------------ |
634 |
* Desired frame length <-> quantizer mapping |
* Desired frame length <-> quantizer mapping |
635 |
*-----------------------------------------------------------------------*/ |
*-----------------------------------------------------------------------*/ |