Mercurial > libavcodec.hg
diff ratecontrol.c @ 7587:6248b6b16e47 libavcodec
Fix rc_eq mem leak.
author | michael |
---|---|
date | Sat, 16 Aug 2008 14:46:31 +0000 |
parents | 322023e630a6 |
children | dc1a7a6ec58d |
line wrap: on
line diff
--- a/ratecontrol.c Sat Aug 16 14:13:49 2008 +0000 +++ b/ratecontrol.c Sat Aug 16 14:46:31 2008 +0000 @@ -106,7 +106,7 @@ }; 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;