mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/f_metadata: correct check for existing metadata
When adding metadata, existing dictionary need not be present.
This commit is contained in:
parent
7fc28465df
commit
c95dfe5cce
@ -304,7 +304,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
AVDictionary **metadata = &frame->metadata;
|
AVDictionary **metadata = &frame->metadata;
|
||||||
AVDictionaryEntry *e;
|
AVDictionaryEntry *e;
|
||||||
|
|
||||||
if (!*metadata)
|
if (!*metadata && s->mode != METADATA_ADD)
|
||||||
return ff_filter_frame(outlink, frame);
|
return ff_filter_frame(outlink, frame);
|
||||||
|
|
||||||
e = av_dict_get(*metadata, !s->key ? "" : s->key, NULL,
|
e = av_dict_get(*metadata, !s->key ? "" : s->key, NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user