diff options
author | Clément Bœsch <u@pkh.me> | 2014-09-20 21:37:01 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-09-27 17:32:14 +0200 |
commit | 0e6bad1229d44865caf452bfbca54d6a62a2f2c5 (patch) | |
tree | 41899a3f21e865c2f4f14c2e086a17afe013c0cd | |
parent | 3a6fa38fb1bd5d9a9a0afe49371180ec59e687b2 (diff) | |
download | ffmpeg-0e6bad1229d44865caf452bfbca54d6a62a2f2c5.tar.gz |
avformat/assenc: mux an event header if none are found in extradata
-rw-r--r-- | libavformat/assenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/assenc.c b/libavformat/assenc.c index 13af86e8cf..8593b6ca4d 100644 --- a/libavformat/assenc.c +++ b/libavformat/assenc.c @@ -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; |