lavc/libvpxenc: show crf CQ value in error message

This commit is contained in:
Stefano Sabatini 2014-09-01 13:10:04 +02:00
parent 2178abd3b5
commit 39b517fac0

View File

@ -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);
}
}