ffmpeg | branch: master | Alexandra Hájková <alexandra.khirn...@gmail.com> | Mon Jul 27 19:42:15 2015 +0200| [78491fe8cfed83d2aead95dafe26f0d3f999e961] | committer: Anton Khirnov
asfdec: do not export empty metadata Signed-off-by: Anton Khirnov <an...@khirnov.net> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78491fe8cfed83d2aead95dafe26f0d3f999e961 --- libavformat/asfdec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 72c5916..790102b 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog