[FFmpeg-devel] [PATCH] lavu/opt: fix doxy for av_opt_get* functions about return value

Stefano Sabatini stefasab at gmail.com
Fri Oct 4 12:11:37 CEST 2013


Success code must be >= 0 and not == 0, consistently with the
implementation.
---
 libavutil/opt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/opt.h b/libavutil/opt.h
index 2b6a20b..87bc0b9 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -689,7 +689,7 @@ int av_opt_set_channel_layout(void *obj, const char *name, int64_t ch_layout, in
  * @param[in] search_flags flags passed to av_opt_find2. I.e. if AV_OPT_SEARCH_CHILDREN
  * is passed here, then the option may be found in a child of obj.
  * @param[out] out_val value of the option will be written here
- * @return 0 on success, a negative error code otherwise
+ * @return >=0 on success, a negative error code otherwise
  */
 /**
  * @note the returned string will av_malloc()ed and must be av_free()ed by the caller
-- 
1.8.1.2



More information about the ffmpeg-devel mailing list