function M = CS4640_getavi(fname,t)
%

v = VideoReader(fname);
v.CurrentTime = t;
count = 0;
while hasFrame(v)
    count = count + 1
    vidFrame = readFrame(v);
    M(count).f = vidFrame;
end
tch = 0;
