mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 09:31:06 +02:00
avformat/assenc: mux an event header if none are found in extradata
This commit is contained in:
parent
3a6fa38fb1
commit
0e6bad1229
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user