Revision 369f7306

View differences:

libavcodec/xsubdec.c
10 10
static const uint8_t tc_offsets[9] = { 0, 1, 3, 4, 6, 7, 9, 10, 11 };
11 11
static const uint8_t tc_muls[9] = { 10, 6, 10, 6, 10, 6, 10, 10, 1 };
12 12

  
13
static uint64_t parse_timecode(AVCodecContext *avctx, uint8_t *buf) {
13
static uint64_t parse_timecode(uint8_t *buf) {
14 14
    int i;
15 15
    int64_t ms = 0;
16 16
    if (buf[2] != ':' || buf[5] != ':' || buf[8] != '.')
......
42 42
        av_log(avctx, AV_LOG_ERROR, "invalid time code\n");
43 43
        return -1;
44 44
    }
45
    sub->start_display_time = parse_timecode(avctx, buf +  1);
46
    sub->end_display_time   = parse_timecode(avctx, buf + 14);
45
    sub->start_display_time = parse_timecode(buf +  1);
46
    sub->end_display_time   = parse_timecode(buf + 14);
47 47
    buf += 27;
48 48

  
49 49
    // read header

Also available in: Unified diff