From dc59ec5e79d813228e3dfbc8942a5fe424b399a0 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 22 May 2011 13:25:19 +0200 Subject: AVOptions: add av_opt_find() as a replacement for av_find_opt. --- cmdutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index c73d5a1..9422fc1 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -299,7 +299,7 @@ int opt_default(const char *opt, const char *arg){ int opt_types[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0}; for(type=0; *avcodec_opts && type= 0; type++){ - const AVOption *o2 = av_find_opt(avcodec_opts[0], opt, NULL, opt_types[type], opt_types[type]); + const AVOption *o2 = av_opt_find(avcodec_opts[0], opt, NULL, opt_types[type], 0); if(o2) ret = av_set_string3(avcodec_opts[type], opt, arg, 1, &o); } @@ -324,13 +324,13 @@ int opt_default(const char *opt, const char *arg){ AVOutputFormat *oformat = NULL; while ((p=av_codec_next(p))){ const AVClass *c = p->priv_class; - if(c && av_find_opt(&c, opt, NULL, 0, 0)) + if(c && av_opt_find(&c, opt, NULL, 0, 0)) break; } if (!p) { while ((oformat = av_oformat_next(oformat))) { const AVClass *c = oformat->priv_class; - if (c && av_find_opt(&c, opt, NULL, 0, 0)) + if (c && av_opt_find(&c, opt, NULL, 0, 0)) break; } } -- cgit v1.1