X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibopusenc.c;h=8ac02f95205bdfa37bfa719e73c0cf8ed5f68f72;hb=f559812a84374bd7f5c225be991e62cff83fd089;hp=a170b711c6f79b6df0111e7d1d30dcea5e64ea61;hpb=033764e015e33b9ce9583317092337367b3fea2b;p=ffmpeg diff --git a/libavcodec/libopusenc.c b/libavcodec/libopusenc.c index a170b711c6f..8ac02f95205 100644 --- a/libavcodec/libopusenc.c +++ b/libavcodec/libopusenc.c @@ -180,12 +180,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 %d bps.\n", avctx->bit_rate); + "No bit rate set. Defaulting to %"PRId64" bps.\n", (int64_t)avctx->bit_rate); } if (avctx->bit_rate < 500 || avctx->bit_rate > 256000 * avctx->channels) { - av_log(avctx, AV_LOG_ERROR, "The bit rate %d bps is unsupported. " - "Please choose a value between 500 and %d.\n", avctx->bit_rate, + 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, 256000 * avctx->channels); return AVERROR(EINVAL); }