mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
lavfi/metadata: fix metadata deletion if comparison returns false
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
99d68d462f
commit
24022402be
@ -330,9 +330,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
case METADATA_DELETE:
|
||||
if (!s->key) {
|
||||
av_dict_free(metadata);
|
||||
} else if (e && e->value && s->value && s->compare(s, e->value, s->value)) {
|
||||
av_dict_set(metadata, s->key, NULL, 0);
|
||||
} else if (e && e->value) {
|
||||
} else if (e && e->value && (!s->value || s->compare(s, e->value, s->value))) {
|
||||
av_dict_set(metadata, s->key, NULL, 0);
|
||||
}
|
||||
return ff_filter_frame(outlink, frame);
|
||||
|
Loading…
Reference in New Issue
Block a user