OK if tested and works.

On 1/17/20, Gyan Doshi <[email protected]> wrote:
> When adding metadata, existing dictionary need not be present.
> ---
>  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,
> --
> 2.24.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to