Mercurial > libavcodec.hg
comparison ratecontrol.c @ 11739:ceffa0ca7596 libavcodec
Change the order of parameters for ff_eval_expr() and
ff_parse_and_eval_expr(), place the names for constants/functions
before the corresponding values.
This looks more readable, as the user is expected to know the names
before the values.
author | stefano |
---|---|
date | Sun, 16 May 2010 23:00:22 +0000 |
parents | 7dd2a45249a9 |
children | c6368258b694 |
comparison
equal
deleted
inserted
replaced
11738:9bfef228a117 | 11739:ceffa0ca7596 |
---|---|
105 "qp2bits", | 105 "qp2bits", |
106 NULL | 106 NULL |
107 }; | 107 }; |
108 emms_c(); | 108 emms_c(); |
109 | 109 |
110 rcc->rc_eq_eval = ff_parse_expr(s->avctx->rc_eq ? s->avctx->rc_eq : "tex^qComp", const_names, func1, func1_names, NULL, NULL, &error); | 110 rcc->rc_eq_eval = ff_parse_expr(s->avctx->rc_eq ? s->avctx->rc_eq : "tex^qComp", const_names, func1_names, func1, NULL, NULL, &error); |
111 if (!rcc->rc_eq_eval) { | 111 if (!rcc->rc_eq_eval) { |
112 av_log(s->avctx, AV_LOG_ERROR, "Error parsing rc_eq \"%s\": %s\n", s->avctx->rc_eq, error? error : ""); | 112 av_log(s->avctx, AV_LOG_ERROR, "Error parsing rc_eq \"%s\": %s\n", s->avctx->rc_eq, error? error : ""); |
113 return -1; | 113 return -1; |
114 } | 114 } |
115 | 115 |