[FFmpeg-cvslog] avcodec/movtextenc: Simplify writing a single char
Andreas Rheinhardt
git at videolan.org
Thu Dec 2 09:08:25 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Nov 30 11:08:33 2021 +0100| [acdfc4bdfb1d800e9459ce700538f09174502d7e] | committer: Andreas Rheinhardt
avcodec/movtextenc: Simplify writing a single char
Reviewed-by: Philip Langdale <philipl at overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=acdfc4bdfb1d800e9459ce700538f09174502d7e
---
libavcodec/movtextenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 = {
More information about the ffmpeg-cvslog
mailing list