h264: additional protection against unsupported size/bitdepth changes.