[FFmpeg-cvslog] lavc/libvpxenc: show crf CQ value in error message

Stefano Sabatini git at videolan.org
Fri Sep 5 11:40:38 CEST 2014


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Mon Sep  1 13:10:04 2014 +0200| [39b517fac0b6d1412b94f30d7be4ec1de65e473a] | committer: Stefano Sabatini

lavc/libvpxenc: show crf CQ value in error message

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39b517fac0b6d1412b94f30d7be4ec1de65e473a
---

 libavcodec/libvpxenc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 227c492..163d12a 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);
         }
     }



More information about the ffmpeg-cvslog mailing list