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.20 2003-06-09 13:55:07 edgomez Exp $ |
* $Id: plugin_2pass2.c,v 1.1.2.21 2003-06-10 10:12:24 suxen_drol Exp $ |
29 |
* |
* |
30 |
*****************************************************************************/ |
*****************************************************************************/ |
31 |
|
|
244 |
} |
} |
245 |
|
|
246 |
/* Compute the target filesize */ |
/* Compute the target filesize */ |
247 |
if (rc->num_frames < create->fbase/create->fincr) { |
if (rc->param.bitrate<0) { |
248 |
|
/* if negative, bitrate equals the target (int kbytes) */ |
249 |
|
rc->target = (-rc->param.bitrate) * 1024; |
250 |
|
|
251 |
|
}else if (rc->num_frames < create->fbase/create->fincr) { |
252 |
/* 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 */ |
253 |
rc->target = rc->param.bitrate / 8; |
rc->target = rc->param.bitrate / 8; |
254 |
} else { |
} else { |