forked from FFmpeg/FFmpeg
lavf/assenc: style nits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
511585ce7f
commit
f0c85d9b99
1 changed files with 3 additions and 3 deletions
|
@ -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{
|
||||||
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)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue