Fix constness for func[12] parameters in ff_parse_expr() and
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 12 Apr 2010 20:22:55 +0000 (20:22 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 12 Apr 2010 20:22:55 +0000 (20:22 +0000)
commitfc7e2d34cff55fd959704b7cc6cc8eb3e94a168a
tree0fc118e504f4a1635720090e7b0258cb297dae99
parent82fdcd449ca267085b3b6191d8de43dd78bf4aac
Fix constness for func[12] parameters in ff_parse_expr() and
ff_parse_and_eval_expr().

Change func[12] attributes from "** func" to "* const * func".

This is consistent with the semantics of the provided arrays of
functions, which are not supposed to be changed by the ff_parse_*
functions.

Also fix the GCC compilation warnings:
libavcodec/ratecontrol.c: In function ‘ff_rate_control_init’:
libavcodec/ratecontrol.c:109: warning: passing argument 3 of ‘ff_parse_expr’ discards qualifiers from pointer target type
libavcodec/eval.h:69: note: expected ‘double (**)(void *, double)’ but argument is of type ‘double (* const*)(void *, double)’

Originally committed as revision 22860 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/eval.c
libavcodec/eval.h