[FFmpeg-cvslog] avformat/assenc: mux an event header if none are found in extradata
Clément Bœsch
git at videolan.org
Sat Sep 27 17:34:26 CEST 2014
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Sep 20 21:37:01 2014 +0200| [0e6bad1229d44865caf452bfbca54d6a62a2f2c5] | committer: Clément Bœsch
avformat/assenc: mux an event header if none are found in extradata
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e6bad1229d44865caf452bfbca54d6a62a2f2c5
---
libavformat/assenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/assenc.c b/libavformat/assenc.c
index 13af86e..8593b6c 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;
More information about the ffmpeg-cvslog
mailing list