diff --git a/libavformat/metadata.c b/libavformat/metadata.c index fc3a9d7d55..b9b6de7972 100644 --- a/libavformat/metadata.c +++ b/libavformat/metadata.c @@ -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))) {