Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
ed7f1a5c20
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/metadata.c

+ 1
- 1
libavformat/metadata.c View File

@@ -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))) {


Loading…
Cancel
Save