Commit 0e6bad12 authored by Clément Bœsch's avatar Clément Bœsch

avformat/assenc: mux an event header if none are found in extradata

parent 3a6fa38f
......@@ -54,6 +54,8 @@ static int write_header(AVFormatContext *s)
if (avctx->extradata[avctx->extradata_size - 1] != '\n')
avio_write(s->pb, "\r\n", 2);
}
if (!strstr(avctx->extradata, "\n[Events]"))
avio_printf(s->pb, "[Events]\r\nFormat: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text\r\n");
avio_flush(s->pb);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment