MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / parse_fade

Function parse_fade

libavformat/sbgdec.c:498–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498static int parse_fade(struct sbg_parser *p, struct sbg_fade *fr)
499{
500 struct sbg_fade f = {0};
501
502 if (lex_char(p, '<'))
503 f.in = SBG_FADE_SILENCE;
504 else if (lex_char(p, '-'))
505 f.in = SBG_FADE_SAME;
506 else if (lex_char(p, '='))
507 f.in = SBG_FADE_ADAPT;
508 else
509 return 0;
510 if (lex_char(p, '>'))
511 f.out = SBG_FADE_SILENCE;
512 else if (lex_char(p, '-'))
513 f.out = SBG_FADE_SAME;
514 else if (lex_char(p, '='))
515 f.out = SBG_FADE_ADAPT;
516 else
517 return AVERROR_INVALIDDATA;
518 *fr = f;
519 return 1;
520}
521
522static int parse_time_sequence(struct sbg_parser *p, int inblock)
523{

Callers 1

parse_time_sequenceFunction · 0.85

Calls 1

lex_charFunction · 0.85

Tested by

no test coverage detected