OSDN Git Service

Make ff_parse_expr() and ff_parse_and_eval_expr() return an int
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 1 Jun 2010 08:07:07 +0000 (08:07 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 1 Jun 2010 08:07:07 +0000 (08:07 +0000)
commit9ace13b416c77f15464fd8e1a024db8b00ce76f9
tree0f2a306d39f556bd203b4381141f52ef35fa5d17
parent27241cbffe180fc92f9f519c6ea7957fc4b3b0c9
Make ff_parse_expr() and ff_parse_and_eval_expr() return an int
containing an error code.

Allow these functions to convey the reason of the failure to the
calling function, failure which is not always due to a parsing error
but it may depend for example on a memory problem.

Also fix several potential memleaks.

Originally committed as revision 23402 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/avcodec.h
libavcodec/eval.c
libavcodec/eval.h
libavcodec/opt.c
libavcodec/ratecontrol.c