EditStreamSetInfo() private method

private EditStreamSetInfo ( IntPtr pStream, AVISTREAMINFO &lpInfo, Int32 cbInfo ) : int
pStream System.IntPtr
lpInfo AVISTREAMINFO
cbInfo System.Int32
return int
        /// <summary>Change the AviStreamInfo values and update the frame rate</summary>
        /// <param name="info"></param>
        public void SetInfo(Avi.AVISTREAMINFO info)
        {
            int result = Avi.EditStreamSetInfo(editableStream, ref info, Marshal.SizeOf(info));

            if (result != 0)
            {
                throw new Exception("Exception in SetInfo: " + result.ToString());
            }

            frameRate = info.dwRate / info.dwScale;
        }