mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00: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:
parent
c4c9d096ae
commit
acdfc4bdfb
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user