Commit ed7f1a5c authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 447d71b8
......@@ -33,7 +33,7 @@ void ff_metadata_conv(AVDictionary **pm, const AVMetadataConv *d_conv,
AVDictionary *dst = NULL;
const char *key;
if (d_conv == s_conv)
if (d_conv == s_conv || !pm)
return;
while ((mtag = av_dict_get(*pm, "", mtag, AV_DICT_IGNORE_SUFFIX))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment