summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-30 11:08:33 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-02 07:31:43 +0100
commitacdfc4bdfb1d800e9459ce700538f09174502d7e (patch)
tree7c4d2c2712cfe3d1dfaad37ea5dc62dcf53d1b62
parentc4c9d096ae11535dc16e5f61e062b9bda056db3d (diff)
avcodec/movtextenc: Simplify writing a single char
Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/movtextenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c
index 112af41093..5869942ec0 100644
--- a/libavcodec/movtextenc.c
+++ b/libavcodec/movtextenc.c
@@ -615,8 +615,8 @@ static void mov_text_text_cb(void *priv, const char *text, int len)
static void mov_text_new_line_cb(void *priv, int forced)
{
MovTextContext *s = priv;
- av_bprint_append_data(&s->buffer, "\n", 1);
s->text_pos += 1;
+ av_bprint_chars(&s->buffer, '\n', 1);
}
static const ASSCodesCallbacks mov_text_callbacks = {