Mercurial > libavcodec.hg
changeset 7587:6248b6b16e47 libavcodec
Fix rc_eq mem leak.
author | michael |
---|---|
date | Sat, 16 Aug 2008 14:46:31 +0000 |
parents | 6082ce39f8eb |
children | f6a1bff47a3b |
files | ratecontrol.c utils.c |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
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;
--- a/utils.c Sat Aug 16 14:13:49 2008 +0000 +++ b/utils.c Sat Aug 16 14:46:31 2008 +0000 @@ -762,7 +762,6 @@ flags= AV_OPT_FLAG_SUBTITLE_PARAM; av_opt_set_defaults2(s, flags, flags); - s->rc_eq= av_strdup("tex^qComp"); s->time_base= (AVRational){0,1}; s->get_buffer= avcodec_default_get_buffer; s->release_buffer= avcodec_default_release_buffer;