From 11c5f438ff83da5040e85bfa6299f56b321d32ef Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Sun, 4 Oct 2015 13:27:15 +0200 Subject: dict: Change return type of av_dict_copy() av_dict_set() could return an error, so forward it appropriately. Signed-off-by: Vittorio Giovara --- libavutil/dict.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavutil/dict.h') diff --git a/libavutil/dict.h b/libavutil/dict.h index e4aee27ca3..b3277ab77c 100644 --- a/libavutil/dict.h +++ b/libavutil/dict.h @@ -130,8 +130,10 @@ int av_dict_parse_string(AVDictionary **pm, const char *str, * @param src pointer to source AVDictionary struct * @param flags flags to use when setting entries in *dst * @note metadata is read using the AV_DICT_IGNORE_SUFFIX flag + * @return 0 on success, negative AVERROR code on failure. If dst was allocated + * by this function, callers should free the associated memory. */ -void av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags); +int av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags); /** * Free all the memory allocated for an AVDictionary struct -- cgit v1.2.3