| 496 | } |
| 497 | |
| 498 | static 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 | |
| 522 | static int parse_time_sequence(struct sbg_parser *p, int inblock) |
| 523 | { |
no test coverage detected