[FFmpeg-cvslog] avfilter/f_metadata: correct check for existing metadata
Gyan Doshi
git at videolan.org
Fri Jan 17 14:06:01 EET 2020
ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Fri Jan 17 15:57:51 2020 +0530| [c95dfe5cce98cde3e7fb14fbd04b3897f3927cec] | committer: Gyan Doshi
avfilter/f_metadata: correct check for existing metadata
When adding metadata, existing dictionary need not be present.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c95dfe5cce98cde3e7fb14fbd04b3897f3927cec
---
libavfilter/f_metadata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/f_metadata.c b/libavfilter/f_metadata.c
index bf298e9d39..598257b15b 100644
--- a/libavfilter/f_metadata.c
+++ b/libavfilter/f_metadata.c
@@ -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,
More information about the ffmpeg-cvslog
mailing list