summaryrefslogtreecommitdiff
path: root/libavutil/opt.h
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2014-11-08 17:12:29 +0100
committerLukasz Marek <lukasz.m.luki2@gmail.com>2014-11-09 17:56:08 +0100
commit457204ee15923cb401368702567ce78bf9f612d8 (patch)
tree996cb9d25a5a0eddfb6a62da674c77587b4e729f /libavutil/opt.h
parentdb2caf0a80d25696a1b0a1308e79a2a128ec36f9 (diff)
lavu/opt: document av_opt_copy function
Diffstat (limited to 'libavutil/opt.h')
-rw-r--r--libavutil/opt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/opt.h b/libavutil/opt.h
index 1b72a105c9..df5a62ec2a 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -815,6 +815,16 @@ void av_opt_freep_ranges(AVOptionRanges **ranges);
*/
int av_opt_query_ranges(AVOptionRanges **, void *obj, const char *key, int flags);
+/**
+ * Copy options from src object into dest object.
+ *
+ * Options that require memory allocation (e.g. string or binary) are malloc'ed in dest object.
+ * Original memory allocated for such options is freed unless both src and dest options points to the same memory.
+ *
+ * @param dest Object to copy from
+ * @param src Object to copy into
+ * @return 0 on success, negative on error
+ */
int av_opt_copy(void *dest, void *src);
/**