Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d210c0e7
Commit
d210c0e7
authored
Sep 21, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ass: add ff_ass_add_rect_bprint() helper
parent
dcdc1cbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
ass.c
libavcodec/ass.c
+8
-0
ass.h
libavcodec/ass.h
+7
-0
No files found.
libavcodec/ass.c
View file @
d210c0e7
...
@@ -151,6 +151,14 @@ err:
...
@@ -151,6 +151,14 @@ err:
return
ret
;
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
,
void
ff_ass_bprint_text_event
(
AVBPrint
*
buf
,
const
char
*
p
,
int
size
,
const
char
*
linebreaks
,
int
keep_ass_markup
)
const
char
*
linebreaks
,
int
keep_ass_markup
)
{
{
...
...
libavcodec/ass.h
View file @
d210c0e7
...
@@ -91,6 +91,13 @@ int ff_ass_subtitle_header_default(AVCodecContext *avctx);
...
@@ -91,6 +91,13 @@ int ff_ass_subtitle_header_default(AVCodecContext *avctx);
int
ff_ass_add_rect
(
AVSubtitle
*
sub
,
const
char
*
dialog
,
int
ff_ass_add_rect
(
AVSubtitle
*
sub
,
const
char
*
dialog
,
int
ts_start
,
int
duration
,
int
raw
);
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.
* Add an ASS dialog line to an AVBPrint buffer.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment