diff options
author | Clément Bœsch <u@pkh.me> | 2014-10-19 21:19:07 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-10-19 23:24:34 +0200 |
commit | c669af0f248e25781a2a12bd96bf9896b1c4484c (patch) | |
tree | 8afc25fae705dd277a02f5e3866e8dfbbfe48757 /libavcodec/ass.c | |
parent | 3d258696057d599d0d9c3b8f73c9a55ec3355782 (diff) | |
download | ffmpeg-c669af0f248e25781a2a12bd96bf9896b1c4484c.tar.gz |
avcodec/ass: add ASS trailing \r\n in one single place
Diffstat (limited to 'libavcodec/ass.c')
-rw-r--r-- | libavcodec/ass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ass.c b/libavcodec/ass.c index 398a805da5..3a37ceee26 100644 --- a/libavcodec/ass.c +++ b/libavcodec/ass.c @@ -174,9 +174,10 @@ err: return ret; } -int ff_ass_add_rect_bprint(AVSubtitle *sub, const AVBPrint *buf, +int ff_ass_add_rect_bprint(AVSubtitle *sub, AVBPrint *buf, int ts_start, int duration) { + av_bprintf(buf, "\r\n"); if (!av_bprint_is_complete(buf)) return AVERROR(ENOMEM); return ff_ass_add_rect(sub, buf->str, ts_start, duration, 0); @@ -218,5 +219,4 @@ void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size, av_bprint_chars(buf, *p, 1); } } - av_bprintf(buf, "\r\n"); } |