Revision ab0287fc ffserver.c

View differences:

ffserver.c
2135 2135
        strcpy(input_filename, c->stream->feed->feed_filename);
2136 2136
        buf_size = FFM_PACKET_SIZE;
2137 2137
        /* compute position (absolute time) */
2138
        if (find_info_tag(buf, sizeof(buf), "date", info)) {
2138
        if (av_find_info_tag(buf, sizeof(buf), "date", info)) {
2139 2139
            if ((ret = av_parse_time(&stream_pos, buf, 0)) < 0)
2140 2140
                return ret;
2141
        } else if (find_info_tag(buf, sizeof(buf), "buffer", info)) {
2141
        } else if (av_find_info_tag(buf, sizeof(buf), "buffer", info)) {
2142 2142
            int prebuffer = strtol(buf, 0, 10);
2143 2143
            stream_pos = av_gettime() - prebuffer * (int64_t)1000000;
2144 2144
        } else
......
2147 2147
        strcpy(input_filename, c->stream->feed_filename);
2148 2148
        buf_size = 0;
2149 2149
        /* compute position (relative time) */
2150
        if (find_info_tag(buf, sizeof(buf), "date", info)) {
2150
        if (av_find_info_tag(buf, sizeof(buf), "date", info)) {
2151 2151
            if ((ret = av_parse_time(&stream_pos, buf, 1)) < 0)
2152 2152
                return ret;
2153 2153
        } else

Also available in: Unified diff