/// <summary>Paste a number of frames from another video stream into this stream</summary>
/// <param name="sourceStream">Pointer to the unmanaged stream to copy from</param>
/// <param name="copyPosition">Index of the first frame to copy</param>
/// <param name="pastePosition">Where to paste the copied frames</param>
/// <param name="length">Count of frames to paste</param>
public void Paste(IntPtr sourceStream, int copyPosition, int pastePosition, int length)
{
int pastedLength = 0;
int result = Avi.EditStreamPaste(editableStream, ref pastePosition, ref pastedLength, sourceStream, copyPosition, length);
if (result != 0)
{
throw new Exception("Exception in Paste: " + result.ToString());
}
countFrames += pastedLength;
}