Ejemplo n.º 1
0
/*
 * advance to next segment
 */
void mvefile_advance_segment(MVEFILE *movie)
{
    if (!have_segment_header(movie))
        return;
    /* else, advance to next segment */
    movie->next_segment +=
        (4 + _mve_get_ushort(&movie->cur_chunk[movie->next_segment]));
}
Ejemplo n.º 2
0
void mvefile_advance_segment (MVEFILE *movie)
{
// if nothing is cached, fail
    if (movie->cur_chunk == NULL  ||  movie->next_segment >= movie->cur_fill)
        return;
// if we don't have enough data to get a tSegment, fail
    if (movie->cur_fill - movie->next_segment < 4)
        return;
// else, advance to next tSegment
    movie->next_segment +=
        (4 + _mve_get_ushort (movie->cur_chunk + movie->next_segment));
}