summaryrefslogtreecommitdiff
path: root/libavcodec/libzvbi-teletextdec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-10-19 21:19:07 +0200
committerClément Bœsch <u@pkh.me>2014-10-19 23:24:34 +0200
commitc669af0f248e25781a2a12bd96bf9896b1c4484c (patch)
tree8afc25fae705dd277a02f5e3866e8dfbbfe48757 /libavcodec/libzvbi-teletextdec.c
parent3d258696057d599d0d9c3b8f73c9a55ec3355782 (diff)
avcodec/ass: add ASS trailing \r\n in one single place
Diffstat (limited to 'libavcodec/libzvbi-teletextdec.c')
-rw-r--r--libavcodec/libzvbi-teletextdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c
index e65e3fb55f..15c1a5de7b 100644
--- a/libavcodec/libzvbi-teletextdec.c
+++ b/libavcodec/libzvbi-teletextdec.c
@@ -101,6 +101,7 @@ static int create_ass_text(TeletextContext *ctx, const char *text, char **ass)
/* First we escape the plain text into buf. */
av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);
ff_ass_bprint_text_event(&buf, text, strlen(text), "", 0);
+ av_bprintf(&buf, "\r\n");
if (!av_bprint_is_complete(&buf)) {
av_bprint_finalize(&buf, NULL);