Browse Source

avfilter/f_metadata: correct check for existing metadata

When adding metadata, existing dictionary need not be present.
tags/n4.3
Gyan Doshi 5 years ago
parent
commit
c95dfe5cce
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/f_metadata.c

+ 1
- 1
libavfilter/f_metadata.c View File

@@ -304,7 +304,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
AVDictionary **metadata = &frame->metadata;
AVDictionaryEntry *e;

if (!*metadata)
if (!*metadata && s->mode != METADATA_ADD)
return ff_filter_frame(outlink, frame);

e = av_dict_get(*metadata, !s->key ? "" : s->key, NULL,


Loading…
Cancel
Save