Private context option search for AVCodecContext is not implemented yet, so
codec private options will not be found by opt_default2().
---
fixed some of the wording. sorry, it's late...
cmdutils.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index 943a77c..af2d182 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -331,7 +331,9 @@ static int opt_default2(const char *opt, const char *arg)
if (o)
return 0;
- fprintf(stderr, "Unrecognized option '%s'\n", opt);
+ /* For now, do not print error message. Private context option search is
+ not yet implemented for AVCodecContext */
+ //fprintf(stderr, "Unrecognized option '%s'\n", opt);
return AVERROR_OPTION_NOT_FOUND;
}
@@ -379,8 +381,11 @@ int opt_default(const char *opt, const char *arg){
}
}
- if ((ret = opt_default2(opt, arg)) < 0)
- return ret;
+ /* For now, do not fail if opt_default2() fails. Private context option
+ * search is not yet implemented for AVCodecContext */
+ //if ((ret = opt_default2(opt, arg)) < 0)
+ // return ret;
+ opt_default2(opt, arg);
// av_log(NULL, AV_LOG_ERROR, "%s:%s: %f 0x%0X\n", opt, arg, av_get_double(avcodec_opts, opt, NULL), (int)av_get_int(avcodec_opts, opt, NULL));
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel