aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-14 19:03:22 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-05-14 19:03:22 +0000
commit644f8c767044e8bbe20e75fd27b5c20c07332101 (patch)
tree7933f5c3d1a7756c7d24a8d3ee0c755971ee4b76
parent3d3bd64db8a319cf40aea3587f346f0ac0805b9b (diff)
downloadffmpeg-644f8c767044e8bbe20e75fd27b5c20c07332101.tar.gz
Document av_set_string3() returned error codes.
Originally committed as revision 18829 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/opt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/opt.h b/libavcodec/opt.h
index 50d483ef15..05c6dea89f 100644
--- a/libavcodec/opt.h
+++ b/libavcodec/opt.h
@@ -136,8 +136,11 @@ attribute_deprecated const AVOption *av_set_string2(void *obj, const char *name,
* @param alloc when 1 then the old value will be av_freed() and the
* new av_strduped()
* when 0 then no av_free() nor av_strdup() will be used
- * @return 0 if the value has been set, an AVERROR* error code if no
- * matching option exists, or if the value \p val is not valid
+ * @return 0 if the value has been set, or an AVERROR code in case of
+ * error:
+ * AVERROR(ENOENT) if no matching option exists
+ * AVERROR(ERANGE) if the value is out of range
+ * AVERROR(EINVAL) if the value is not valid
*/
int av_set_string3(void *obj, const char *name, const char *val, int alloc, const AVOption **o_out);