OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bf6db1
)
asfdec: don't export empty metadata
author
Anton Khirnov
<anton@khirnov.net>
Wed, 9 Feb 2011 20:56:00 +0000
(21:56 +0100)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Sun, 13 Feb 2011 21:49:39 +0000
(16:49 -0500)
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/asfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/asfdec.c
b/libavformat/asfdec.c
index
8e712a6
..
2d43ac2
100644
(file)
--- 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);