[FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Write Tags element for WebM
Ivan Janatra
janatra at google.com
Thu Sep 7 23:12:08 EEST 2017
This is already supported per https://www.webmproject.org/docs/container/#Tags and https://github.com/nbirkbeck/matroska-specification/commit/28a54f991f118fff31fe6bfe256c2dfab46d00e5
---
libavformat/matroskaenc.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 9cc7be352e..5b70fead87 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1988,12 +1988,12 @@ static int mkv_write_header(AVFormatContext *s)
ret = mkv_write_attachments(s);
if (ret < 0)
goto fail;
-
- ret = mkv_write_tags(s);
- if (ret < 0)
- goto fail;
}
+ ret = mkv_write_tags(s);
+ if (ret < 0)
+ goto fail;
+
if (!(s->pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live)
mkv_write_seekhead(pb, mkv);
--
2.14.1.581.gf28d330327-goog
More information about the ffmpeg-devel
mailing list