avcodec/movtextenc: Simplify writing a single char

Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-11-30 11:08:33 +01:00
parent c4c9d096ae
commit acdfc4bdfb
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {