summaryrefslogtreecommitdiff
path: root/libavformat/asfdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-09 21:56:00 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-13 16:49:39 -0500
commit5cbd3b5d915a76888b83af5c1fd3df31bd20a5be (patch)
tree2d372dc8d31c2503f593f3c841fe43d516d8aefa /libavformat/asfdec.c
parent8bf6db1b29f3766732e2bb2bdd2681318fd8e215 (diff)
asfdec: don't export empty metadata
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r--libavformat/asfdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 8e712a6c5b..2d43ac2f54 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -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);
goto finish;
}
- av_metadata_set2(&s->metadata, key, value, 0);
+ if (*value)
+ av_metadata_set2(&s->metadata, key, value, 0);
finish:
av_freep(&value);
url_fseek(s->pb, off + len, SEEK_SET);