pos = pos_min; found: pos = s->data_offset + ((pos / block_align) * block_align); url_fseek(&s->pb, pos, SEEK_SET); asf_reset_header(s); return 0;
static int asf_read_seek(AVFormatContext *s, int stream_index, int64_t pts){#if 0    ASFContext *asf = s->priv_data;    int i;    for(i = 0;; i++) {        url_fseek(&s->pb, asf->data_offset + i * asf->packet_size, SEEK_SET);        if (asf_get_packet(s) < 0)            break;        printf("timestamp=%0.3f\n",  asf->packet_timestamp / 1000.0);    }#endif    return -1;}