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 { |