diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 68e6c2e8a7..ca758409dd 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1036,7 +1036,8 @@ static void matroska_convert_tags(AVFormatContext *s) matroska_convert_tag(s, &tags[i].tag, &track[j].stream->metadata, NULL); } else { - matroska_convert_tag(s, &tags[i].tag, &s->metadata, NULL); + matroska_convert_tag(s, &tags[i].tag, &s->metadata, + tags[i].target.type); } } }