mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 06:02:12 +00:00
Merge commit '78491fe8cfed83d2aead95dafe26f0d3f999e961'
* commit '78491fe8cfed83d2aead95dafe26f0d3f999e961': asfdec: do not export empty metadata Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
07094e5e40
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user