diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 13:51:16 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-18 05:23:51 +0200 |
commit | a75c2eb25a62105c09b48521aef429dc8a231637 (patch) | |
tree | 231f63b8fe78db74313fd999794d84d8f1b3b509 /libavcodec/ratecontrol.c | |
parent | 946f95354ba76ef73c9b66889d86ab5fba4fb486 (diff) |
lavc: make rc_eq into private options of mpegvideo encoders
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r-- | libavcodec/ratecontrol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 92438b46f0..3aa3e27602 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -126,11 +126,11 @@ av_cold int ff_rate_control_init(MpegEncContext *s) emms_c(); res = av_expr_parse(&rcc->rc_eq_eval, - s->avctx->rc_eq ? s->avctx->rc_eq : "tex^qComp", + s->rc_eq ? s->rc_eq : "tex^qComp", const_names, func1_names, func1, NULL, NULL, 0, s->avctx); if (res < 0) { - av_log(s->avctx, AV_LOG_ERROR, "Error parsing rc_eq \"%s\"\n", s->avctx->rc_eq); + av_log(s->avctx, AV_LOG_ERROR, "Error parsing rc_eq \"%s\"\n", s->rc_eq); return res; } @@ -382,7 +382,7 @@ static double get_qscale(MpegEncContext *s, RateControlEntry *rce, bits = av_expr_eval(rcc->rc_eq_eval, const_values, rce); if (isnan(bits)) { - av_log(s->avctx, AV_LOG_ERROR, "Error evaluating rc_eq \"%s\"\n", s->avctx->rc_eq); + av_log(s->avctx, AV_LOG_ERROR, "Error evaluating rc_eq \"%s\"\n", s->rc_eq); return -1; } |