mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-23 16:13:29 +08:00
Merge commit '11c5f438ff83da5040e85bfa6299f56b321d32ef'
* commit '11c5f438ff83da5040e85bfa6299f56b321d32ef': dict: Change return type of av_dict_copy() Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
+8
-3
@@ -210,12 +210,17 @@ void av_dict_free(AVDictionary **pm)
|
||||
av_freep(pm);
|
||||
}
|
||||
|
||||
void av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags)
|
||||
int av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags)
|
||||
{
|
||||
AVDictionaryEntry *t = NULL;
|
||||
|
||||
while ((t = av_dict_get(src, "", t, AV_DICT_IGNORE_SUFFIX)))
|
||||
av_dict_set(dst, t->key, t->value, flags);
|
||||
while ((t = av_dict_get(src, "", t, AV_DICT_IGNORE_SUFFIX))) {
|
||||
int ret = av_dict_set(dst, t->key, t->value, flags);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int av_dict_get_string(const AVDictionary *m, char **buffer,
|
||||
|
||||
Reference in New Issue
Block a user