Skip to content
Snippets Groups Projects
Commit 6ad974ae authored by Clément Bœsch's avatar Clément Bœsch
Browse files

lavf/id3v2: do not export empty fields.

This also avoids a memleak.
parent 4fd57397
No related branches found
No related tags found
No related merge requests found
...@@ -303,6 +303,8 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen, const cha ...@@ -303,6 +303,8 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen, const cha
} }
else if (*dst) else if (*dst)
dict_flags |= AV_DICT_DONT_STRDUP_VAL; dict_flags |= AV_DICT_DONT_STRDUP_VAL;
else
av_freep(&dst);
if (dst) if (dst)
av_dict_set(&s->metadata, key, dst, dict_flags); av_dict_set(&s->metadata, key, dst, dict_flags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment