mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Remove some unneeded casts of bit_rate.
This commit is contained in:
parent
c34c0e3a64
commit
724cf83f10
17 changed files with 22 additions and 22 deletions
|
|
@ -351,12 +351,12 @@ static av_cold int libopus_encode_init(AVCodecContext *avctx)
|
|||
avctx->bit_rate = 64000 * opus->stream_count +
|
||||
32000 * coupled_stream_count;
|
||||
av_log(avctx, AV_LOG_WARNING,
|
||||
"No bit rate set. Defaulting to %"PRId64" bps.\n", (int64_t)avctx->bit_rate);
|
||||
"No bit rate set. Defaulting to %"PRId64" bps.\n", avctx->bit_rate);
|
||||
}
|
||||
|
||||
if (avctx->bit_rate < 500 || avctx->bit_rate > 256000 * avctx->channels) {
|
||||
av_log(avctx, AV_LOG_ERROR, "The bit rate %"PRId64" bps is unsupported. "
|
||||
"Please choose a value between 500 and %d.\n", (int64_t)avctx->bit_rate,
|
||||
"Please choose a value between 500 and %d.\n", avctx->bit_rate,
|
||||
256000 * avctx->channels);
|
||||
ret = AVERROR(EINVAL);
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue