summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/opt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index 84ea19117d..a17e7ba757 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -300,6 +300,12 @@ int av_opt_show(void *obj, void *av_log_obj){
return 0;
}
+/** Set the values of the AVCodecContext or AVFormatContext structure.
+ * They are set to the defaults specified in the according AVOption options
+ * array default_val field.
+ *
+ * @param s AVCodecContext or AVFormatContext for which the defaults will be set
+ */
void av_opt_set_defaults(void *s)
{
AVOption *opt = NULL;