mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-26 04:50:25 +00:00
avcodec/ass: add ff_ass_add_rect_bprint() helper
This commit is contained in:
parent
dcdc1cbf43
commit
d210c0e777
@ -151,6 +151,14 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ff_ass_add_rect_bprint(AVSubtitle *sub, const AVBPrint *buf,
|
||||
int ts_start, int duration, int raw)
|
||||
{
|
||||
if (!av_bprint_is_complete(buf))
|
||||
return AVERROR(ENOMEM);
|
||||
return ff_ass_add_rect(sub, buf->str, ts_start, duration, raw);
|
||||
}
|
||||
|
||||
void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size,
|
||||
const char *linebreaks, int keep_ass_markup)
|
||||
{
|
||||
|
@ -91,6 +91,13 @@ int ff_ass_subtitle_header_default(AVCodecContext *avctx);
|
||||
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
|
||||
int ts_start, int duration, int raw);
|
||||
|
||||
/**
|
||||
* Same as ff_ass_add_rect_bprint, but taking an AVBPrint buffer instead of a
|
||||
* string.
|
||||
*/
|
||||
int ff_ass_add_rect_bprint(AVSubtitle *sub, const AVBPrint *buf,
|
||||
int ts_start, int duration, int raw);
|
||||
|
||||
/**
|
||||
* Add an ASS dialog line to an AVBPrint buffer.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user