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
f0c85d9b
Commit
f0c85d9b
authored
Apr 04, 2015
by
Rodger Combs
Committed by
Michael Niedermayer
Apr 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/assenc: style nits
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
511585ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
assenc.c
libavformat/assenc.c
+3
-3
No files found.
libavformat/assenc.c
View file @
f0c85d9b
...
@@ -31,7 +31,7 @@ typedef struct DialogueLine {
...
@@ -31,7 +31,7 @@ typedef struct DialogueLine {
struct
DialogueLine
*
prev
,
*
next
;
struct
DialogueLine
*
prev
,
*
next
;
}
DialogueLine
;
}
DialogueLine
;
typedef
struct
ASSContext
{
typedef
struct
ASSContext
{
const
AVClass
*
class
;
const
AVClass
*
class
;
int
write_ts
;
// 0: ssa (timing in payload), 1: ass (matroska like)
int
write_ts
;
// 0: ssa (timing in payload), 1: ass (matroska like)
int
expected_readorder
;
int
expected_readorder
;
...
@@ -40,12 +40,12 @@ typedef struct ASSContext{
...
@@ -40,12 +40,12 @@ typedef struct ASSContext{
int
cache_size
;
int
cache_size
;
int
ssa_mode
;
int
ssa_mode
;
int
ignore_readorder
;
int
ignore_readorder
;
}
ASSContext
;
}
ASSContext
;
static
int
write_header
(
AVFormatContext
*
s
)
static
int
write_header
(
AVFormatContext
*
s
)
{
{
ASSContext
*
ass
=
s
->
priv_data
;
ASSContext
*
ass
=
s
->
priv_data
;
AVCodecContext
*
avctx
=
s
->
streams
[
0
]
->
codec
;
AVCodecContext
*
avctx
=
s
->
streams
[
0
]
->
codec
;
if
(
s
->
nb_streams
!=
1
||
(
avctx
->
codec_id
!=
AV_CODEC_ID_SSA
&&
if
(
s
->
nb_streams
!=
1
||
(
avctx
->
codec_id
!=
AV_CODEC_ID_SSA
&&
avctx
->
codec_id
!=
AV_CODEC_ID_ASS
))
{
avctx
->
codec_id
!=
AV_CODEC_ID_ASS
))
{
...
...
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