Commit 61b4daf7 authored by Marton Balint's avatar Marton Balint

avformat/assenc: optimize writing dialogs

An example where the preivously added API can be useful.

Also fixes ticket #6390.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent a82f8f2f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment