summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-22 13:25:19 +0200
committerAnton Khirnov <anton@khirnov.net>2011-06-16 20:24:56 +0200
commitdc59ec5e79d813228e3dfbc8942a5fe424b399a0 (patch)
tree140dace29d599a0478455f7394de015bbb7a9939 /cmdutils.c
parent7e83e1c511baf0d02f3af75b6180d6af4d50aa99 (diff)
AVOptions: add av_opt_find() as a replacement for av_find_opt.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmdutils.c b/cmdutils.c
index c73d5a1ca2..9422fc1f03 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<AVMEDIA_TYPE_NB && ret>= 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;
}
}