diff options
author | Kyle Swanson <k@ylo.ph> | 2017-03-26 13:48:28 -0500 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-03-27 09:35:48 +0200 |
commit | b12693facf991f343cdf310690f59f69143b256f (patch) | |
tree | 6845150f01ef0666a6ac445952fbc4cf70919a99 /libavcodec | |
parent | d65b59550b4d7eb526bbd407df74f030fad5c00b (diff) | |
download | ffmpeg-b12693facf991f343cdf310690f59f69143b256f.tar.gz |
libavcodec/opusenc: use correct format specifiers
Squelches the following compiler warnings:
libavcodec/opusenc.c:1051:16: warning: format specifies type 'long' but
the argument has type 'long long' [-Wformat]
avctx->bit_rate/1000, clipped_rate/1000);
^~~~~~~~~~~~~~~~~~~~
libavcodec/opusenc.c:1051:38: warning: format specifies type 'long' but
the argument has type 'long long' [-Wformat]
avctx->bit_rate/1000, clipped_rate/1000);
^~~~~~~~~~~~~~~~~
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/opusenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c index 56368dbb91..cecc8f22ab 100644 --- a/libavcodec/opusenc.c +++ b/libavcodec/opusenc.c @@ -1047,7 +1047,7 @@ static av_cold int opus_encode_init(AVCodecContext *avctx) avctx->bit_rate = coupled*(96000) + (s->channels - coupled*2)*(48000); } else if (avctx->bit_rate < 6000 || avctx->bit_rate > 255000 * s->channels) { int64_t clipped_rate = av_clip(avctx->bit_rate, 6000, 255000 * s->channels); - av_log(avctx, AV_LOG_ERROR, "Unsupported bitrate %li kbps, clipping to %li kbps\n", + av_log(avctx, AV_LOG_ERROR, "Unsupported bitrate %"PRId64" kbps, clipping to %"PRId64" kbps\n", avctx->bit_rate/1000, clipped_rate/1000); avctx->bit_rate = clipped_rate; } |