You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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:
@@ -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)
|
static void mov_text_new_line_cb(void *priv, int forced)
|
||||||
{
|
{
|
||||||
MovTextContext *s = priv;
|
MovTextContext *s = priv;
|
||||||
av_bprint_append_data(&s->buffer, "\n", 1);
|
|
||||||
s->text_pos += 1;
|
s->text_pos += 1;
|
||||||
|
av_bprint_chars(&s->buffer, '\n', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const ASSCodesCallbacks mov_text_callbacks = {
|
static const ASSCodesCallbacks mov_text_callbacks = {
|
||||||
|
Reference in New Issue
Block a user