diff options
author | James Almer <jamrial@gmail.com> | 2013-09-18 00:59:34 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-18 23:06:59 +0200 |
commit | ea70e2f2d7b69ce3800fc72b91de5dd09bac59d5 (patch) | |
tree | fb096d2e7ee86b713a7aab340cfb481c3e1a745d /libavformat | |
parent | 93439e8b6f434a1f14a1834c3024f95f8d996afa (diff) | |
download | ffmpeg-ea70e2f2d7b69ce3800fc72b91de5dd09bac59d5.tar.gz |
matroskaenc: Write muxingapp and writingapp elements when using bitexact flag
Files won't validate with mkvalidtor if these two elements are missing.
Use a const "Lavf" string that wont change with library version bumps.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index d502147cd5..9f631c228e 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1095,6 +1095,10 @@ static int mkv_write_header(AVFormatContext *s) put_ebml_string(pb, MATROSKA_ID_MUXINGAPP , LIBAVFORMAT_IDENT); put_ebml_string(pb, MATROSKA_ID_WRITINGAPP, LIBAVFORMAT_IDENT); put_ebml_binary(pb, MATROSKA_ID_SEGMENTUID, segment_uid, 16); + } else { + const char *ident = "Lavf"; + put_ebml_string(pb, MATROSKA_ID_MUXINGAPP , ident); + put_ebml_string(pb, MATROSKA_ID_WRITINGAPP, ident); } if (tag = av_dict_get(s->metadata, "creation_time", NULL, 0)) { |