H264 and others require the surface resolution to work properly. This initializes the codecs and the resolution on reset.