333 |
/* Compute the target filesize */ |
/* Compute the target filesize */ |
334 |
if (rc->param.bitrate<0) { |
if (rc->param.bitrate<0) { |
335 |
/* if negative, bitrate equals the target (in kbytes) */ |
/* if negative, bitrate equals the target (in kbytes) */ |
336 |
rc->target = (-rc->param.bitrate) * 1024; |
rc->target = ((uint64_t)(-rc->param.bitrate)) * 1024; |
337 |
} else if (rc->num_frames < create->fbase/create->fincr) { |
} else if (rc->num_frames < create->fbase/create->fincr) { |
338 |
/* 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 */ |
339 |
rc->target = rc->param.bitrate / 8; |
rc->target = rc->param.bitrate / 8; |