Commit 07094e5e authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '78491fe8'

* commit '78491fe8':
  asfdec: do not export empty metadata
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents d95fee44 78491fe8
......@@ -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;
}
......
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