Exemplo n.º 1
0
        public int ReadFrame(byte[] buffer, int frame)
        {
            int n = (int)video_index[frame].len;

            AviStream.Seek(video_index[frame].pos, SeekOrigin.Begin);
            if (AviStream.Read(buffer, 0, n) != n)
            {
                throw new AviException("Read Error.");
            }

            return(n);
        }