summaryrefslogtreecommitdiff
path: root/libavcodec/libvpxenc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2014-09-01 13:10:04 +0200
committerStefano Sabatini <stefasab@gmail.com>2014-09-05 11:20:07 +0200
commit39b517fac0b6d1412b94f30d7be4ec1de65e473a (patch)
treec1457094da4410ed9f2147c74eab376beecae356 /libavcodec/libvpxenc.c
parent2178abd3b5311dd334f0380ea9521b18e4f2e564 (diff)
lavc/libvpxenc: show crf CQ value in error message
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r--libavcodec/libvpxenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 227c492328..163d12aca6 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -341,8 +341,8 @@ static av_cold int vpx_init(AVCodecContext *avctx,
) {
if (ctx->crf < enccfg.rc_min_quantizer || ctx->crf > enccfg.rc_max_quantizer) {
av_log(avctx, AV_LOG_ERROR,
- "CQ level must be between minimum and maximum quantizer value (%d-%d)\n",
- enccfg.rc_min_quantizer, enccfg.rc_max_quantizer);
+ "CQ level %d must be between minimum and maximum quantizer value (%d-%d)\n",
+ ctx->crf, enccfg.rc_min_quantizer, enccfg.rc_max_quantizer);
return AVERROR(EINVAL);
}
}