mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00: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;
|
||||
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…
Reference in New Issue
Block a user