Revision c007c687 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
743 743
        return AVERROR(ENOSYS);
744 744
    ret = s->read_seek(h, stream_index, timestamp, flags);
745 745
    if(ret >= 0) {
746
        int64_t pos;
746 747
        s->buf_ptr = s->buf_end; // Flush buffer
747
        s->pos = s->seek(h, 0, SEEK_CUR);
748
        pos = s->seek(h, 0, SEEK_CUR);
749
        if (pos >= 0)
750
            s->pos = pos;
751
        else if (pos != AVERROR(ENOSYS))
752
            ret = pos;
748 753
    }
749 754
    return ret;
750 755
}

Also available in: Unified diff