Revision cd256c3b libavformat/ffmetadec.c

View differences:

libavformat/ffmetadec.c
61 61

  
62 62
    if (sscanf(line, "TIMEBASE=%d/%d", &tb.num, &tb.den))
63 63
        get_line(s->pb, line, sizeof(line));
64
    if (!sscanf(line, "START=%lld", &start)) {
64
    if (!sscanf(line, "START=%"SCNd64, &start)) {
65 65
        av_log(s, AV_LOG_ERROR, "Expected chapter start timestamp, found %s.\n", line);
66 66
        start = (s->nb_chapters && s->chapters[s->nb_chapters - 1]->end != AV_NOPTS_VALUE) ?
67 67
                 s->chapters[s->nb_chapters - 1]->end : 0;
68 68
    } else
69 69
        get_line(s->pb, line, sizeof(line));
70 70

  
71
    if (!sscanf(line, "END=%lld", &end)) {
71
    if (!sscanf(line, "END=%"SCNd64, &end)) {
72 72
        av_log(s, AV_LOG_ERROR, "Expected chapter end timestamp, found %s.\n", line);
73 73
        end = AV_NOPTS_VALUE;
74 74
    }

Also available in: Unified diff