Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-08-02 11:41:45 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2015-08-02 11:41:45 +0300
commit07094e5e405408df593d16421286bb9eb4188365 (patch)
tree3d5f3085a9ca52df22ba4fa2c2b3b5182c37c288 /libavformat/asfdec_o.c
parentd95fee4425285e90604cda48375069f5ef090ce3 (diff)
parent78491fe8cfed83d2aead95dafe26f0d3f999e961 (diff)
Merge commit '78491fe8cfed83d2aead95dafe26f0d3f999e961'
* commit '78491fe8cfed83d2aead95dafe26f0d3f999e961': asfdec: do not export empty metadata Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavformat/asfdec_o.c')
-rw-r--r--libavformat/asfdec_o.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c
index 283807ad2e..d53e271356 100644
--- a/libavformat/asfdec_o.c
+++ b/libavformat/asfdec_o.c
@@ -256,8 +256,10 @@ static int asf_read_metadata(AVFormatContext *s, const char *title, uint16_t len
AVIOContext *pb = s->pb;
avio_get_str16le(pb, len, ch, buflen);
- if (av_dict_set(&s->metadata, title, ch, 0) < 0)
- av_log(s, AV_LOG_WARNING, "av_dict_set failed.\n");
+ if (ch[0]) {
+ if (av_dict_set(&s->metadata, title, ch, 0) < 0)
+ av_log(s, AV_LOG_WARNING, "av_dict_set failed.\n");
+ }
return 0;
}