avcodec/ass: Faster ff_ass_add_rect()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2021-12-17 19:48:51 +01:00
parent 6f210ebae2
commit aed698efc3
2 changed files with 37 additions and 6 deletions

View File

@@ -118,6 +118,13 @@ int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
int readorder, int layer, const char *style,
const char *speaker);
/**
* Add an ASS dialog to a subtitle.
*/
int ff_ass_add_rect2(AVSubtitle *sub, const char *dialog,
int readorder, int layer, const char *style,
const char *speaker, unsigned *nb_rect_allocated);
/**
* Helper to flush a text subtitles decoder making use of the
* FFASSDecoderContext.