Bug 844177: set codec resolution based on input mediastream resolution r=ekr