This happens when capturing browsers or other hardware accelerated windows using the WGC capture, Windows adds a yellow border to inform you which window is being captured. You can use bitblt capture to avoid it, but then you must turn off acceleration manually.