Commit 5cbd3b5d authored by Anton Khirnov's avatar Anton Khirnov Committed by Ronald S. Bultje

asfdec: don't export empty metadata

Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 8bf6db1b
...@@ -178,7 +178,8 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len) ...@@ -178,7 +178,8 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len)
av_log(s, AV_LOG_DEBUG, "Unsupported value type %d in tag %s.\n", type, key); av_log(s, AV_LOG_DEBUG, "Unsupported value type %d in tag %s.\n", type, key);
goto finish; goto finish;
} }
av_metadata_set2(&s->metadata, key, value, 0); if (*value)
av_metadata_set2(&s->metadata, key, value, 0);
finish: finish:
av_freep(&value); av_freep(&value);
url_fseek(s->pb, off + len, SEEK_SET); url_fseek(s->pb, off + len, SEEK_SET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment