diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-08-16 18:46:31 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-08-16 18:46:31 +0400 |
commit | 3cffbe090a5168dcfe580de8d662a32e7ad1d911 (patch) | |
tree | c9272ce929f3ec818e5d686fb5f971d2a6a55021 /libavcodec/ratecontrol.c | |
parent | 847d05360baf01c71c89cf9602fbbf5bd481c232 (diff) |
Fix rc_eq mem leak.
Originally committed as revision 14788 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r-- | libavcodec/ratecontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index d3bee6a457..e8d1ae8899 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -106,7 +106,7 @@ int ff_rate_control_init(MpegEncContext *s) }; emms_c(); - rcc->rc_eq_eval = ff_parse(s->avctx->rc_eq, const_names, func1, func1_names, NULL, NULL, &error); + rcc->rc_eq_eval = ff_parse(s->avctx->rc_eq ? s->avctx->rc_eq : "tex^qComp", const_names, func1, func1_names, NULL, NULL, &error); if (!rcc->rc_eq_eval) { av_log(s->avctx, AV_LOG_ERROR, "Error parsing rc_eq \"%s\": %s\n", s->avctx->rc_eq, error? error : ""); return -1; |