OSDN Git Service

lavc/libvpxenc: show crf CQ value in error message
authorStefano Sabatini <stefasab@gmail.com>
Mon, 1 Sep 2014 11:10:04 +0000 (13:10 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 5 Sep 2014 09:20:07 +0000 (11:20 +0200)
libavcodec/libvpxenc.c

index 227c492..163d12a 100644 (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);
         }
     }