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
069c8975
Commit
069c8975
authored
Nov 23, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/assdec: add ass_ prefix to callbacks.
parent
e0260e25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
assdec.c
libavformat/assdec.c
+11
-11
No files found.
libavformat/assdec.c
View file @
069c8975
...
...
@@ -28,7 +28,7 @@ typedef struct ASSContext{
FFDemuxSubtitlesQueue
q
;
}
ASSContext
;
static
int
probe
(
AVProbeData
*
p
)
static
int
ass_
probe
(
AVProbeData
*
p
)
{
const
char
*
header
=
"[Script Info]"
;
...
...
@@ -39,7 +39,7 @@ static int probe(AVProbeData *p)
return
0
;
}
static
int
read_close
(
AVFormatContext
*
s
)
static
int
ass_
read_close
(
AVFormatContext
*
s
)
{
ASSContext
*
ass
=
s
->
priv_data
;
ff_subtitles_queue_clean
(
&
ass
->
q
);
...
...
@@ -79,7 +79,7 @@ static int64_t get_line(AVBPrint *buf, AVIOContext *pb)
return
pos
;
}
static
int
read_header
(
AVFormatContext
*
s
)
static
int
ass_
read_header
(
AVFormatContext
*
s
)
{
ASSContext
*
ass
=
s
->
priv_data
;
AVBPrint
header
,
line
;
...
...
@@ -145,14 +145,14 @@ end:
return
res
;
}
static
int
read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
static
int
ass_
read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
ASSContext
*
ass
=
s
->
priv_data
;
return
ff_subtitles_queue_read_packet
(
&
ass
->
q
,
pkt
);
}
static
int
read_seek2
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
min_ts
,
int64_t
ts
,
int64_t
max_ts
,
int
flags
)
static
int
ass_read_seek
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
min_ts
,
int64_t
ts
,
int64_t
max_ts
,
int
flags
)
{
ASSContext
*
ass
=
s
->
priv_data
;
return
ff_subtitles_queue_seek
(
&
ass
->
q
,
s
,
stream_index
,
...
...
@@ -163,9 +163,9 @@ AVInputFormat ff_ass_demuxer = {
.
name
=
"ass"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"SSA (SubStation Alpha) subtitle"
),
.
priv_data_size
=
sizeof
(
ASSContext
),
.
read_probe
=
probe
,
.
read_header
=
read_header
,
.
read_packet
=
read_packet
,
.
read_close
=
read_close
,
.
read_seek2
=
read_seek2
,
.
read_probe
=
ass_
probe
,
.
read_header
=
ass_
read_header
,
.
read_packet
=
ass_
read_packet
,
.
read_close
=
ass_
read_close
,
.
read_seek2
=
ass_read_seek
,
};
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