diff options
author | Marton Balint <cus@passwd.hu> | 2019-08-05 22:36:56 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2019-08-17 18:39:49 +0200 |
commit | 61b4daf78ce09534b258aae6b86934ce98d2b27f (patch) | |
tree | f7c86a4f251c15933cb50df5af2dc4f27edfc72a /libavformat | |
parent | a82f8f2f10d0a4d8072919a8e4bdc1c39f4d27b8 (diff) | |
download | ffmpeg-61b4daf78ce09534b258aae6b86934ce98d2b27f.tar.gz |
avformat/assenc: optimize writing dialogs
An example where the preivously added API can be useful.
Also fixes ticket #6390.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/assenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/assenc.c b/libavformat/assenc.c index d50f18feb1..12aadca171 100644 --- a/libavformat/assenc.c +++ b/libavformat/assenc.c @@ -95,7 +95,7 @@ static void purge_dialogues(AVFormatContext *s, int force) ass->expected_readorder, dialogue->readorder); ass->expected_readorder = dialogue->readorder; } - avio_printf(s->pb, "Dialogue: %s\r\n", dialogue->line); + avio_print(s->pb, "Dialogue: ", dialogue->line, "\r\n"); if (dialogue == ass->last_added_dialogue) ass->last_added_dialogue = next; av_freep(&dialogue->line); |