mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +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