Skip to content
Snippets Groups Projects
Commit ed7f1a5c authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/metadata: allow ff_metadata_conv() to be called with NULL saftely

parent 447d71b8
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ void ff_metadata_conv(AVDictionary **pm, const AVMetadataConv *d_conv, ...@@ -33,7 +33,7 @@ void ff_metadata_conv(AVDictionary **pm, const AVMetadataConv *d_conv,
AVDictionary *dst = NULL; AVDictionary *dst = NULL;
const char *key; const char *key;
if (d_conv == s_conv) if (d_conv == s_conv || !pm)
return; return;
while ((mtag = av_dict_get(*pm, "", mtag, AV_DICT_IGNORE_SUFFIX))) { while ((mtag = av_dict_get(*pm, "", mtag, AV_DICT_IGNORE_SUFFIX))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment